Posted 30 April 2006 - 04:07 PM
Fatal error: Call to undefined function mysql_connect() in D:\Apache Group\Apache2\htdocs\NightClassBrett\week 10\nw.php on line 27
The line it is reffering to is
The localhost psw and username are definatly correct. I set the psw to root.
Any ideas to what I may have done wrong in installation that could be causing this problem
I have also removed the ' in front of the line 'extension=php_mysql.dll
which I believe was nessacery. Is there any other alteration to the php.ini file I need to make ?
any help would be aprreciated.
Posted 30 April 2006 - 04:29 PM
extension_dir = "./"change ./ to the full path to where the php extension folder is located to, ie C:\php\ext
Now you need to save the php.ini and look a for a file called libmysql.dll and copy that to the Windows folder or add the php folder to the Windows PATH variable instead, saves moving any files.
Now restart your Apache web server and you should be able to use the mysql functions.
Posted 30 April 2006 - 04:54 PM
Posted 30 April 2006 - 06:17 PM
Click Start > Run > type in cmd and click OK. The Command Line window should appear. Now type in the following:
cd C:\MySQL\binand click enter now type in the following:
mysql-nt --installThis will start the MySQL service. Then to stop mysql use the following, in the correct order:
net stop MySql mysql-nt --removeBefore you run the above command make sure you are in the MySQL bin folder.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users