Question : Installing mySQL

Hi

I currently have PHP installed on my Windows XP box and now i need to install mysql.

I have no knowledge at all of mysql installation so i need to know exactly what i need to download/install etc and any configuration changes that i need to make.

Also to connect to mysql from php i need a username and password for mysql so i suppose i will need to know how to create an account in mysql too.

I will increase points if the answers are helpful (preferably not just links to webpages).

Thank you :)

Answer : Installing mySQL

Hi

>>I have no knowledge at all of mysql installation so i need to know exactly what i need to download/install etc and any configuration changes that i need to make.

Take a look at this url for how to install mysql on windows XP & follow up after installation..
http://www.analysisandsolutions.com/code/mybasic.htm

>>Also to connect to mysql from php i need a username and password for mysql so i suppose i will need to know how to create an account in mysql too.

By default mysql creates root account with no password.. so u have to login with user name root with no password..so to create a user testuser with password test123 who can connect phpdb database(I hope u have created this DB)..


say you have installed mysql in C:/.. then default installed directory would be..

C:\>mysql\bin>mysql -u root

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version:XXXX

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>GRANT ALL on phpdb.* to 'testuser'@'%' IDENTIFIED BY 'test123';
mysql>FLUSH PRIVILEGES:

that's it....

now from php you can connect this mysql server(phpdb database) with testuser/test123...

Hope This Helps!..






Random Solutions  
 
programming4us programming4us