Forums / Cotonti / Support / Cannot connect to MySQL database

Triton
#1 2009-04-21 22:05
Hello, I was always a fan of Seditio, so I decided to give Cotonti a try, except everytime I go to my sites URL I receive the following message:
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/rmseries/public_html/system/database.mysql.php on line 97

2009-04-21 09:54
Fatal error : Could not connect to database !
Please check your settings in the file datas/config.php
MySQL error : 

Now, I followed the guide, I created a database, Called rmseries_contonti, created a User: rmseries_test and a password and enter it into config-simple.php. Then I assigned the user rmseries_test to the database I created. Simple, common sense stuff. I set the main URL for the site, set the skin, etc and then renamed config-simple.php to config.php then added the SQL tables to the database. I navigate to my URL, but I receive the same error message.

So I use the exact same information as above (Removed the cotonti tables, added Seditio ones) and install a clean version of Seditio V121, and it all goes smoothly with no problems. Does anyone have any other ideas? Thank you for your time ^^
aiwass
#2 2009-04-21 23:00
Does your server have all the requirements that Cotonti needs ?
I had the same problems at first until i check if all the required bits was available on the server i was testing on. It turned out that they weren't, so i changed to another server which had the requirements needed.

cotonti:
Requirements To install Cotonti for the first time, you'll need to have the minimum following server software pre-installed:
* WWW Server (Apache, nginx, etc)
* PHP 5.1 or higher
* MySQL 4.1 or higher
Server Configuration
You MUST ensure that PHP has been compiled with support for:
* GD
* Mbstring
* MySQL
* PCRE
* Sessions
* Zlib
in order to successfully run Cotonti.
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
Joy
#3 2009-04-21 23:04
cotonti:
--------------------------------------------------------------------------------
Requirements To install Cotonti for the first time, you'll need to have the minimum following server software pre-installed:
* WWW Server (Apache, nginx, etc)
* PHP 5.1 or higher
* MySQL 4.1 or higher
Server Configuration
You MUST ensure that PHP has been compiled with support for:
* GD
* Mbstring
* MySQL
* PCRE
* Sessions
* Zlib
in order to successfully run Cotonti.

YOU NEED THESE STUFF
Kilandor
#4 2009-04-22 01:17
Be sure you renamed the file form config-sample.php to config.php