This forum is no longer active. Please post your questions to our new community site
Recent Posts by silliemunkie
|
07 Jul, 2009 09:19 PM
|
Topic: MAMPStack / error when accessing mysql from PHP i get the following error when trying to access my database: Warning: mysqli::mysqli(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (2) in /- on line 3 Warning: mysqli::query(): Couldn’t fetch mysqli in /- on line 4 Warning: main(): Couldn’t fetch mysqli in /- on line 4 the calling code is: <?php $mysql = new mysqli(‘localhost’, ‘root’, ‘password’, ‘db’) or die(‘you\’re dead’); if($result) { while($row = $result→fetch_object()) { I’m sure I am missing a configuration step somewhere, but can’t seem to get the right combination. thank you, |
|
06 Jul, 2009 07:09 PM
|
Topic: MAMPStack / access to mysql Hello, Jason |
|
04 Jul, 2009 03:00 AM
|
Topic: MAMPStack / access to mysql I have been looking, and can’t seem to find out how to connect to mysql from the commmand line, and from within code. any guidance would be greatly appreciated. Jason |

