Sunday 16 October 2005 9:21:57 am
First of all you should check if your mysql server is running. You can do it like this: mysql -u your_username your_databse (I think you can ommti the your_database parameter) If you get an error similar like this: ERROR 2003: Can't connect to MySQL server on 'localhost' (10061) then something's wrong with your mysql server. If you get the password prompt then the Server is running OK. The next step to check (when you assured that the mysql server is running) is to check if you can connect to mysql from PHP. Create a php file with this content: <?PHP $conn = mysql_connect('localhost', 'your_server', 'your_password'); echo $conn; ?> and put this file somewhere in the directory where your web pages are located. The view that file from your browser. If you get somethnig like this: Resource id 32543 you CAN connect to mysql from PHP. If you get some error, then there's probably something misconfigured in your PHP installation. You could also enable debug in eZ by putting this:
[DebugSettings] DebugOutput=enabled in settings/override/site.ini.append.php in your eZ instalation and when you view the eZ site from your browser, you'll get the debug infromation on the bottom. Very useful. Remember to remove this debug lines from this file when you solve the error if you don't want to see the debug info anymore. Hope this helps.
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
|