|
-
May 30th, 2002, 08:59 AM
#1
Thread Starter
Addicted Member
MySQL getting started
Since this seems to be the PHP and MySQL forum, I just installed MySQL on a new server and, where do I go from here. I cant create a database until I get a user and I can get a user until I get a database, right? Or maybe I'm just lost. And I installed phpMyAdmin but when I tried to run it I got this...
The $cfgPmaAbsoluteUri directive MUST be set in your configuration file!
-
May 30th, 2002, 09:31 AM
#2
ok first you have to set a root login and password. then from there you can create a table and another user if you want.
phpmyadmin won't run unless you have a DB setup already.
then do this to setup the root and pass.
You should also add a password for the root user. The following example starts by removing the anonymous user that can be used by anyone to access the test database, then sets a root user password:
C:\> C:\mysql\bin\mysql mysql
mysql> DELETE FROM user WHERE Host='localhost' AND User='';
mysql> QUIT
C:\> C:\mysql\bin\mysqladmin reload
C:\> C:\mysql\bin\mysqladmin -u root password your_password
After you've set the password, if you want to take down the mysqld server, you can do so using this command:
C:\> mysqladmin --user=root --password=your_password shutdown
that is if you are on windows. read this if different
http://www.mysql.com/documentation/m...ult_privileges
if you setup a root password and login, you can then set phpmyadmin to the test database then you can setup other tabels.
but you have to have root login to make other users.
does tht help a little?
-
May 30th, 2002, 10:09 AM
#3
Thread Starter
Addicted Member
its helping a little bit, umm I tried starting it and messed around with it beforehand so when i try the ol'
./bin/safe_mysqld --user=mysql &
to get it going it says...
A mysqld process already exists.
And when I tried to do this little ditty...
./bin/mysqladmin -u root -p password 'whatever';
It prompted me for the password again, I entered it again and got this..
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'
maybe I need to restart the mysql server but cant seem to figure out how. mysqlserver.stop gives me a command not found.
I'm think I'm getting somewhere but dont know.
-
May 30th, 2002, 10:17 AM
#4
you typed in the wrong password for the root. you should clear it out and then startoveror change teh password since you don't know what it is.
looks like you are on a *nix server correct? did you try quit?
-
May 30th, 2002, 10:21 AM
#5
Thread Starter
Addicted Member
maybe I did enter the wrong password, but I should be entering the password that my root has right? Or which password should I be entering? Yeah I'm on a Linux.
-
May 30th, 2002, 10:25 AM
#6
ya you should be using root password.
this:
'Access denied for user: 'root@localhost' (Using password: YES)'
means that you either typed it wrong or there is no passowrd for root.
try clearing it and reseting it (the password that is)
-
May 30th, 2002, 10:31 AM
#7
Thread Starter
Addicted Member
ok, I read up on the documentation and realized the initial password is set to nothing and you have to change it later... it helps to read I guess. Now what do I from here?
-
May 30th, 2002, 10:33 AM
#8
ok, so you are logged on as root now?
then you can make tables or add users. or you should be able to get phpmyadmin running.
-
May 30th, 2002, 10:34 AM
#9
Thread Starter
Addicted Member
nevermind I got it! WOO HOO! I dont have to use postgres on this project! Yeah! Thanks again scoutt, you've saved me again.
-
May 30th, 2002, 10:35 AM
#10
what was teh final outcome?
glad you got it working
-
May 30th, 2002, 10:42 AM
#11
Thread Starter
Addicted Member
actually I guess I counted my chickens before they hatched. Everything is working, I can create users but still the phpMyAdmin page is giving me the same error. I'm in mysql now and I can create databases and stuff under the root but I would like to get the phpMyAdmin to work. Any ideas?
The error I'm getting is ...
The $cfgPmaAbsoluteUri directive MUST be set in your configuration file!
Last edited by TheGoldenShogun; May 30th, 2002 at 10:51 AM.
-
May 30th, 2002, 10:51 AM
#12
in your phpmyadmin config file you need to set the username and passowrd and the database it needs to connect to.
-
May 30th, 2002, 10:56 AM
#13
Thread Starter
Addicted Member
cha-ching, I just needed to set the user and the filepath of the phpMyAdmin. Everything is working now! (does a little dance) Thanks again for all your help scoutt.
-
May 30th, 2002, 10:58 AM
#14
-
May 30th, 2002, 01:38 PM
#15
Fanatic Member
what i did was install mysql, then goto
C:\Inetpub\MySQL\bin (where i have it installed)
and i ran winmysqladmin.exe, and click on my.ini Setup on top, and added under "[WinMySQLadmin]"
user=user
pass=pass
thats how i got it work, dunno about that root stuff
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
May 30th, 2002, 05:57 PM
#16
sure that works on a windows system, but not on linux.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|