This question has been answered by benlbit. See the first response.
If it couldn't connect to the database server, that means that one of the connection items is incorrect - the database server, the username or the password.
When I enter the Database Host, Login, Password, Name & Table Prefix, click the Test database server connection and view collations. and I get this:
Connecting to database server: Success!
- Checking MySQL server version: OK! Running: 5.1.63-log
- Checking MySQL client version: OK! Running: 5.0.11-20120503-$Id:40933630edef551dfaca71298a83fad8d03d62d4$
A couple things stand out here.
1) When it connects to the database server the first time, it's probably just pinging it.
2) When it connects for the purpose of installing, it's trying to create the database tables within the schema. I also do installs using MS SQL Server and MODX installation cannot create a database, so I have to do that manually ahead of time or else I get that "cannot create database" error.
To get around this, do the following:
1) log into MySQL using your credentials you use to connect with MODX
2) try to create a table
3) make sure it creates successfully in the schema you've specified with MODX
My guess is that your database don't have rights in MySQL to actually create tables or you don't have rights to create tables in that schema.
Hope this helps.
Regards,
Tom
CREATE TABLE TEST ( TESTFIELD INTEGER)
1) You should be able to get the version just by logging in
2) to create a table to test, go to the schema you'll be using, go to the SQL window and then type something like this:
CREATE TABLE TEST ( TESTFIELD INTEGER)
My guess is that your account wouldn't allow that.
btw, which Web Server are you using to connect?
SHOWGRANTSFOR CURRENT_USER