up vote 0 down vote favorite
share [g+] share [fb]

I'm having two errors when I test the "mysql_connect()" function in php. I just installed PHP and MySQL from scratch. These errors may be related, so I will post them both here:

Warning: mysql_connect() [function.mysql-connect]: Headers and client library minor version mismatch. Headers:50158 Library:50518 in /usr/local/apache2/htdocs/index.php on line 6

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/local/apache2/htdocs/index.php on line 6

Many websites say to start the mysql server if you are getting error #2. Whenever I execute the command

mysqld start --user=mysql

I get the error "mysqld: Too many arguments (first extra is 'start');

Adding the "&" to the end of the command makes no difference (I don't know if it is supposed to).

I just rebuilt/reinstalled mysql. Having same error.

Thanks,

Cypher Delton

link|improve this question

1  
You might want to fix up your 38% accept rate. – Neal Nov 28 '11 at 21:56
@Neal, thanks for the suggestion. – cypherdelton Nov 28 '11 at 22:33
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.