Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
I am preparing to train some tech support people on how to install Moodle on Fedora Core 3. I have installed Moodle many times, but usually with cPanel help as far as the db creation goes.
I have created the db and the db user w/password appropriately. I can do anything I want with the database via mysql command line interface. Here's what I did just to test that my user has the access it needs. Logging in as moodle in mysql, I can add tables and data etc. to my db. But when I get to the database configuration page in the Moodle web-based installation procedure, I get the error: "We could not connect to the database you specified. Please check your database settings."
What should I check next? Or should I just build the config file by hand and give it a whirl?
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
I have the exact same problem! I can also access the database using my moodle account and add tables and such but when I return to the installation I get the same error as you; "We could not connect to the database... and so on"
Lets hope someone can help us out!
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
http://www.mysqlusers.com/msg/29173.html
You might also want to Google on the search
mysql "error while storing the user information"
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
http://dev.mysql.com/doc/mysql/en/old-client.html
(Scroll down to the note about PHP.)
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
i have installed moodle 1.4 on fedora core 3 i also got lot of problems during installation..
u may give me ur mail id i would send u my config.php and httpd.conf file ..u just put them into ur /etc/httpd/conf/ directory.. and config.php in ur moodle directory..ok
i installed moodle in /usr/moodle/mymoodle.. directory.. and moodle data in /usr/moodle_data/mymoodle and created a dataabase for mymoodle in mysql for the user root and password root123..
and at last plzz disable the selinux by typing folowwoing command in terminal..setenforce 0
thsi will allow apache to connect with mysql database...
this will surely help to you..
regards..
Raju
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
the other tool foe test phptest and php test manager i tried installing bt same error abt sql db..so kindly help me ...
regards
umesh chavan
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
you can mail me ur every doubt...i can easily fell ur problem how much problems u will be getting right now..becux same was case with me..
anyhow if u can come to yahoo mesaaner after 9.30 i can solve ur doubts online...tt will be more benefitial for you as i think,..u can ask ur probs..
so dear first u have to disable ur selinux by this command...in shell
type the foloowing command..
setenforce 0
it helps to excess apache with mysql..
now come to config.php file..
set the folling parameters...
like database user and password as root and password is root123 and be ware that u r using same id and password that u were using in mysql..
actually i installed it in /usr/moodle/mymoodle direcroty and data in /usr/moodle_data/mymoodle
and i advise you to do the same....
what more u want to knoe send me in details..
regards..
raju
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
If you get errors like "database connection failed" or "could not connect to the database you specified", here are some possible reasons and some possible solutions.
- Your database server isn't installed or running. To check this for MySQL try typing the following command line
telnet database_host_name 3306
You should get a cryptic response which includes the version number of the MySQL server. - You
don't have the PHP mysql or postgresql extensions installed. To check
for this, create a new file on your web site called info.php,
containing the following text, and call it from your browser:
<?PHP phpinfo() ?>
and see if any information about mysql or postgresql is displayed. - You
haven't created a database for Moodle and assigned a user with the
correct privileges to access it. Or the database name, database user or
database user password in your Moodle configuration file config.php are
incorrect. Use phpMyAdmin to set up and check your MySQL installation.
- You are using MySQL version 4.1 or higher, whose default password hashing algorithm is incompatible with that available in PHP versions 4.x.x. See http://dev.mysql.com/doc/mysql/en/old-client.html for further information on how to deal with this.
- You are using Fedora core 3 or some other Linux system with SELinux installed and enabled. See the following URL for information on how to disable SELinux: http://fedora.redhat.com/projects/selinux/
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
I've set the passwords all to the old password method, created a schema for moodle, and even if I use the root user it fails.
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
am tring to install moodle on redhat9 ,having php 4.2, mysql n apache enabled....
bt when start installation ot says
PHP has not been properly configured with the MySQL extension so that it can communicate with MySQL. Please check your php.ini file or recompile PHP.
how can i solve this prob?
and am i suppose to create a database in mysql before installation?
kindly help
Re: Cannot access MySql DB, although its been created properly. I CAN use mysql commands nicely!
If Fedora has been installed with SELinux you don't have to re-install it, you can put a parameter in the boot string (shown below) which inhibits SELinux:
edit /boot/grub/menu.lst and add "selinux=0" to the end of the line:
kernel hd(... showopts
Sean K Beardie