've installed mysql on my local win xp with Apache and php5. I'm trying to learn php and mysql. The book I am using expects me to know a little more than I do. I've looked around and have found so solution to my problem. I think it's too simple. How do I access mysql? From the cmd I have: C:\MySQL\data>mysql>CREATE DATABASE test; (which returns only) C:\MySQL\data> (I then try accessing 'test') C:\MySQL\data>mysql>USE test; (this gives me) ERROR 1045 <28000>: Access denied for user 'ODBC'@'localhost' <using password:NO> Am I just using the cmd wrong here? In the my.ini file I have: #Path to the database root datadir="C:/MySQL/Data/" I'll be glad when I'm out of the #*$! stage of this learning process....
looks like you need to enter a password... try connecting again (make sure the mysql running) using this command mysql -u [B]your_mysql_username[/B] -p Code (markup): press Enter then a password field will appear... enter the password.. then Press enter again. then try creating a database again and connect to the database using the "USE" command. hope this helps...
I suggest you to disinstall that crap and use WAMP. WAMP supports MYSQL apache and is a virtual server, it is easy to use as a beguiner and has phpmyadmin to edit and create tables within a mysql database. search wamp in google. if you are a linux user search LAMP if Mac user search MAMP.
I wont call Mysql CRAP! if Mysql is crap then also WAMP is crap, since WAMP is also based on mysql server. If RootShell wants to play just with mysql, then it's his choice. Let him learn.
Definition And Explanation Of Html ,PHP And CSS & Differences between PHP4 and PHP5 Better Than ebook