Results 1 to 5 of 5
-
8th Jul 2012, 04:31 PM #1OPMember
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';
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
-
8th Jul 2012, 05:17 PM #2Respected 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 userBots 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.
-
8th Jul 2012, 05:23 PM #3OPMember
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".
-
8th Jul 2012, 05:33 PM #4Respected 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.
-
8th Jul 2012, 05:38 PM #5OPMember
Thanks, That's clarified...
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Need some help with a Offline Database Application Creation [Oracle App]
By Froomple in forum Webmaster DiscussionReplies: 2Last Post: 20th Aug 2012, 12:26 PM -
vBulletin MySQL database error
By Webmin in forum vBulletinReplies: 9Last Post: 23rd Dec 2011, 11:13 PM -
MySql Database To Large
By Kat in forum Webmaster DiscussionReplies: 16Last Post: 14th Dec 2011, 10:59 PM -
Having Problem With Mysql Database Upload
By maverick79 in forum Server ManagementReplies: 12Last Post: 9th Dec 2011, 08:03 PM -
Mysql(Database)host
By Mit1mit2 in forum Hosting DiscussionReplies: 1Last Post: 19th Sep 2010, 07:03 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...