Share » Forums » Install & configuration » could'n connect to database

could'n connect to database

could'n connect to database

Wednesday 07 May 2003 3:37:53 pm - 6 replies

Author Message

Tony Wood

Wednesday 07 May 2003 4:16:36 pm

A couple of things to try.

1. Ensure MySQL is running
2. The socket is correct, it could be 3306 or 3400
3. Check the database name
4. Check the userid for the table
5. Check the password

Its normally one of those. At least for me anyway.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

HK Lam

Wednesday 07 May 2003 10:18:43 pm

how about the /settings/site.ini

[Database Settings]
# Use either ezmysql or ezpostgresql
Database Implementation=ezpostgresql
# Name of server to connect to
Server=localhost
# DB user name
User=<user>
# DB Password
Password=<password>
# database name you have created in the previous step
Database=<name_of_database>

claudio demarinis

Wednesday 07 May 2003 10:50:07 pm

where i control the socket? The site.ini settings are correct

claudio demarinis

Thursday 08 May 2003 12:04:01 am

in the site.in there this row:
Databasepluginpath

How should i edit this?

Tony Wood

Thursday 08 May 2003 12:24:48 am

A quick way to get a site going that has stopped like this is to backup all your settings files.

GNU/Linux: tar cvzf settings.tgz settings
Windows: Zip -a settings.zip settings

and then change the site.ini file in settings/site.ini or if you have one site.ini.php making CheckValidity true.

[SiteAccessSettings]
CheckValidity=true

This will check your system out, file permissions, database connection etc... Really handy.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Thursday 08 May 2003 12:26:03 am

For your sockets, thats a MySQL issue, it is controlled via the /etc/my.cnf

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu