Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
php can't connect to mysql
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="tdunphy" data-source="post: 942302" data-attributes="member: 131434"><p>Hi</p><p> </p><p> I have php 5.3.0 installed on my snow leopard mac. mysql 5.1 is installed and running. everything is local. I can log into mysql from the command line but for some reason even tho I am feeding my php scripts the correct login and they used to work they can no longer connect to my local mysql install.</p><p></p><p> I could use some help troubleshooting this.</p><p></p><p> Specifically this line used to work:</p><p></p><p>[code]</p><p>if (!($connection = @ mysql_connect("localhost","user","shhhhh")))</p><p> die("Could not connect");</p><p>[/code]</p><p></p><p>now this script jumps right to the die line.</p><p></p><p>I'm honestly not sure what changed here.</p><p> :shrug:</p><p>help!</p></blockquote><p></p>
[QUOTE="tdunphy, post: 942302, member: 131434"] Hi I have php 5.3.0 installed on my snow leopard mac. mysql 5.1 is installed and running. everything is local. I can log into mysql from the command line but for some reason even tho I am feeding my php scripts the correct login and they used to work they can no longer connect to my local mysql install. I could use some help troubleshooting this. Specifically this line used to work: [code] if (!($connection = @ mysql_connect("localhost","user","shhhhh"))) die("Could not connect"); [/code] now this script jumps right to the die line. I'm honestly not sure what changed here. :shrug: help! [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
php can't connect to mysql
Top