Activity Stream
48,167 MEMBERS
61037 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member

    Default Mysql database creation doubt

    When creating mysql database user, I think following command is used :
    Code: 
    CREATE USER 'webdb_user'@'10.0.15.25' IDENTIFIED BY 'password123';
    What I have to put the highlighted part, "localhost" or my vps ip address ?
    Thank you for the help...
    jasoothai Reviewed by jasoothai on . Mysql database creation doubt When creating mysql database user, I think following command is used : CREATE USER 'webdb_user'@'10.0.15.25' IDENTIFIED BY 'password123'; What I have to put the highlighted part, "localhost" or my vps ip address ? Thank you for the help... Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    localhost will work if you have not changed it, and here is a complete command to add user with privileges on some database.

    PHP Code: 
    GRANT ALL PRIVILEGES 
           ON DATABASENAME
    .* 
           
    TO 'YOURUSER'@'localhost'
           
    IDENTIFIED BY 'YOURPASSWORD' 
           
    WITH GRANT OPTION
    // DATABASE = your database name
    //YOURUSER = your username for mysql
    // YOURPASSWORD = your password for mysql user
    More info here
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  4.     
    #3
    Member
    That page says :
    if you're going to access this database from another computer system, you'll need to specify the IP address of that remote system here instead of "localhost".
    What is the ip address of remote system, Is it the IP address of VPS ?

  5.     
    #4
    Respected Developer
    if you are going to use mysql from another server/IP then you need to provide your location IP where script is hosted but if script is hosted on same server where mysql database is then you will only use localhost.
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  6.     
    #5
    Member
    Thanks, That's clarified...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 20th Aug 2012, 12:26 PM
  2. vBulletin MySQL database error
    By Webmin in forum vBulletin
    Replies: 9
    Last Post: 23rd Dec 2011, 11:13 PM
  3. MySql Database To Large
    By Kat in forum Webmaster Discussion
    Replies: 16
    Last Post: 14th Dec 2011, 10:59 PM
  4. Having Problem With Mysql Database Upload
    By maverick79 in forum Server Management
    Replies: 12
    Last Post: 9th Dec 2011, 08:03 PM
  5. Mysql(Database)host
    By Mit1mit2 in forum Hosting Discussion
    Replies: 1
    Last Post: 19th Sep 2010, 07:03 PM

Tags for this Thread

BE SOCIAL