Jump to content


Photo

Wampserver


  • Please log in to reply
2 replies to this topic

#1 greeneel

greeneel
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 26 February 2006 - 08:58 PM

Helo all,

I installed wamp5 1.4.4 and its working fine so far. Now bein a beginner at PHP,Mysql, Apache and all that I was reading the e-book Begining PHP,Apache,Mysql Web development.

anyways i am trying to access and create a database in mysql and i get teh following error
Fatal error:

Call to undefined function mysql_create_db() in c:\wamp\www\createmovie.php on line 8

I think this maybe because i don`t know the password for the mysql server that wamp made when i installed everything because within the script i have this:

$connect = mysql_connect("localhost", "root", "mysqlpass")

my question is did wamp setup a username and pass for mysql ?

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 26 February 2006 - 09:02 PM

The password is probably blank.

$connect = mysql_connect("localhost", "root", "")

Use phpMyAdmin to change that asap if your server is accessable from the internet.

#3 greeneel

greeneel
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 26 February 2006 - 11:50 PM

thx bro will try it..




Did that and now getting the following error:

Fatal error: Call to undefined function mysql_create_db() in c:\wamp\www\createmovie.php on line 8

running
Apache version : Apache/1.3.33 (Win32)
PHP version : 5.0.4
MySQL version : 4.1.10a-nt - extension : mysqli

If i would need to show my script let me know, I am basically trying to create and add some information to the database..

thx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users