Access database

Hi,
My host, OVH, requests to modify the access to the database. Only .mysql.db is authorized. The old name is XXXbdd.
So, I have modified the file zp-data/zenphoto.cfg/php. Unfortunately, I have always the same error : No such file or directory.
The information are :
Database host: localhost
Database name: XXXbdd.mysql.db
Database server port: 3306

I have access to PHPMy admin without problem.

Thank in advance

Tags:

Comments

  • fretzl Administrator, Developer

    You need to change the name of the actual database to XXXbdd.mysql.db too.

  • Thanks for your answer.
    But I can't change the name of the actual database in OVH.. cf mutualized hosting -(
    Is there any other solution?

  • acrylian Administrator, Developer
    edited November 9

    I am not sure I understand your problem at all. If you have a database add its name and other credentials to the Zenphoto config file you find in zp-data/zenphoto.cfg.php. That's it.

    If zp-data/zenphoto.cfg/php above is not a typo, that naturally does not work. Pay atention to the slash as there is no file "php". Not sure how you were able to try to modify that file without finding it in zp-data at all?

    Naturally if this is a fresh database you need to run setup so Zenphoto sets up the require tables.

    If the database does not work there is something wrong with the credential like the database host server name (it is not always "localhost" and depends on your webhost setup)

  • Thank.
    I make a confusion with the data host server name. Now, it's work

Sign In or Register to comment.