Reply
Old January 16th, 2004 Top | #1
 
CHiLLaXen's Avatar
hypnotika
Joined: January 2004
Location: Minnesota
Posts: 107
Reputation: 40
Power: 104

Default mySQL install help

OK, I just installed apache, php, and mySQL in a partition on my hard drive. PHP works but I cannot get mySQL to work. I"m at the point where I must create a admin password. I go to the command line, get to the mysql\bin folder. I type "mysqladmin -uroot password blahblah" <- not the real password. It says:

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (10061)'
Check that mysqld is running on localhost and that the port is 3306.
You can check this by doing 'telnet localhost 3306'

I have no idea what it is talking about. I'm very new to this server stuff. I just wanted to install it so I could test out my website before putting it online.
CHiLLaXen is offline   Reply With Quote
Old January 16th, 2004 Top | #2
 
GMeagle86's Avatar
OSNN Addict
Joined: January 2004
Posts: 144
Reputation: 10
Power: 104

Default

Try not using a password unless you set one up. and/or try not using a username. Those were my problems. I did not set one to begin with, so I didn't give it one and it worked. I only use mine for local testing though so it doesn't have to be really secure.
GMeagle86 is offline   Reply With Quote
Old January 16th, 2004 Top | #3
 
GMeagle86's Avatar
OSNN Addict
Joined: January 2004
Posts: 144
Reputation: 10
Power: 104

Default

um, do you have windows or linux?
GMeagle86 is offline   Reply With Quote
Old January 16th, 2004 Top | #4
 
CHiLLaXen's Avatar
hypnotika
Joined: January 2004
Location: Minnesota
Posts: 107
Reputation: 40
Power: 104

Default

wondows XP
CHiLLaXen is offline   Reply With Quote
Old January 16th, 2004 Top | #5
 
j79zlr's Avatar
Glaanies script monkey
Joined: February 2003
Location: Chicago
Posts: 2,725
Reputation: 1520
Power: 155

Default

MySQL is not running, I haven't used it on Windows, but I think you need a my.ini config file in, well you need to figure out where it goes, and then start it up.

Once you get it running use this to set the password

mysql>SET PASSWORD FOR username@"%"=PASSWORD('your password');
j79zlr is offline   Reply With Quote
Old January 16th, 2004 Top | #6
 
GMeagle86's Avatar
OSNN Addict
Joined: January 2004
Posts: 144
Reputation: 10
Power: 104

Default

I used this guide and it helped me:

http://internetmaster.com/installtutorial/index.htm
GMeagle86 is offline   Reply With Quote
Old January 16th, 2004 Top | #7

OSNN Folding Team  
Geffy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,805
Reputation: 1490
Power: 217

Default

yeah you gotta run mysql-nt and make the my.ini or my.cnf in C:\


blogtumbloglastfmflickr#rubyonrails@twitter
"I could be replaced with a very small shell script"
Geffy is offline   Reply With Quote
Old January 16th, 2004 Top | #8

OSNN Folding Team  
vern's Avatar
Dominus
Joined: March 2002
Location: Minnesota, USA
Posts: 1,570
Reputation: 660
Power: 146

Default

The initial DB for MySQL was not setup. That needs to be setup first before you can connect to MySQL. I run MySQL on Linux, I would have to...

su mysql
mysql_install_db
to setup the initial DB. Someone else might be able to help you setting up the initial database in Windows.
vern is offline   Reply With Quote
Old January 16th, 2004 Top | #9
 
CHiLLaXen's Avatar
hypnotika
Joined: January 2004
Location: Minnesota
Posts: 107
Reputation: 40
Power: 104

Default

Yea, I had to create a DB first, it works now. Thanks for all the help
CHiLLaXen is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
pg to mysql and mysql to pg Dark Atheist Green Room 9 March 25th, 2008 4:43pm
can't get new php/mysql install to work. Heeter Web Design & Coding 2 February 29th, 2008 7:06am
VB 6 and mySQL disavowed00 Web Design & Coding 5 January 15th, 2005 8:29pm
PHP and Mysql luish Web Design & Coding 7 August 24th, 2003 6:27pm
PHP MySQL 5meg Web Design & Coding 3 February 2nd, 2002 1:34pm