Results 1 to 16 of 16

Thread: MySQL getting started

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Unhappy 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!

  2. #2
    scoutt
    Guest
    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?

  3. #3

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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.

  4. #4
    scoutt
    Guest
    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?

  5. #5

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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.

  6. #6
    scoutt
    Guest
    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)

  7. #7

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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?

  8. #8
    scoutt
    Guest
    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.

  9. #9

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    nevermind I got it! WOO HOO! I dont have to use postgres on this project! Yeah! Thanks again scoutt, you've saved me again.


  10. #10
    scoutt
    Guest
    what was teh final outcome?

    glad you got it working

  11. #11

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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.

  12. #12
    scoutt
    Guest
    in your phpmyadmin config file you need to set the username and passowrd and the database it needs to connect to.

  13. #13

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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.

  14. #14
    scoutt
    Guest
    cool, your welcome

  15. #15
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    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?

  16. #16
    scoutt
    Guest
    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
  •  



Click Here to Expand Forum to Full Width