I’ve been banging my head on the wall for several hours now. Can someone please show a working sample of files on how to set up a new WordPress site with EasyEngine when using external MySQL Server.
I have created a new schema EasySite and database user EasySiteUser with MySQL workbench and granted full access to this user to the schema. Connection works fine from web server. Ttested with
- mysql -h db.myserver.com -u EasySiteUser -p
- show databases;
I’ve followed instructions to the letter and created following ~/.my.cnf file:
- [client] host=db.myserver.com
In my /etc/easyengine/ee.conf database settings are following:
grant-host = localhost
db-name = true
db-user = true
But when creating the site, this happens:
user@webserver:~$ sudo ee site create myserver.com --wpsubdom
Creating myserver.com, please wait…
Creating symbolic link for myserver.com
Creating htdocs & logs directory
Downloading WordPress, please wait…
Enter the MySQL database name [myserver_com]: EasySite
Enter the MySQL database username [myserver_com]: EasySiteUser
Enter the MySQL database password [I0STLpHjUbHkSiX]: ERROR 1007 (HY000) at line 1: Can’t create database ‘EasySite’; database exists
[ Wed Sep 3 04:46:26 EEST 2014 ] Unable to create EasySite database, exit status = 1
I tried dropping the EasySite database but that just created another error message about lacking grant permissions.
If I create the site to local MySQL database everything works fine.
What are the username and password configured to .my.cnf file supposed to be anyway? Is it supposed to be perhaps database root?