How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 26, 2012 11:03PM

Hi,

I am on production environment and the root (no password) is not allowed. Because of that i can't use phpMyAdmin.

How can i set a user directly into the mysql console in order to start using phpMyAdmin?

Thanks

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 26, 2012 11:14PM

I am using windows server 2008 R2

Second question: how to i delete the root user after i entered a new user?

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: RiggsFolly (---.as13285.net)
Date: September 26, 2012 11:22PM

Have a look at this there is a section on changing the password and removing the root user.

[forum.wampserver.com]



Edited 1 time(s). Last edit at 09/26/2012 11:22PM by RiggsFolly.

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 26, 2012 11:30PM

Hi RiggsFolly,

After reading i found out mysql service is not starting. I started it but it closes automatically after few seconds. What to do?

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: RiggsFolly (---.as13285.net)
Date: September 26, 2012 11:32PM

Look in the mysql error log

wamp -> MySQL -> MySQL Log


What does it say

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: RiggsFolly (---.as13285.net)
Date: September 26, 2012 11:38PM

Sorry I did not read your original request properly.

Are you using wamp??

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 27, 2012 12:04AM

Yes iam using wamp, i just reinstalled the version with apache 2.4

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 27, 2012 12:05AM

This what the msql log says:

"120926 16:03:41 [Note] Plugin 'FEDERATED' is disabled.
120926 16:03:41 InnoDB: The InnoDB memory heap is disabled
120926 16:03:41 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120926 16:03:41 InnoDB: Compressed tables use zlib 1.2.3
120926 16:03:41 InnoDB: Initializing buffer pool, size = 128.0M
120926 16:03:41 InnoDB: Completed initialization of buffer pool
120926 16:03:41 InnoDB: highest supported file format is Barracuda.
120926 16:03:41 InnoDB: Waiting for the background threads to start
120926 16:03:42 InnoDB: 1.1.8 started; log sequence number 1595675
120926 16:03:42 [Note] Server hostname (bind-address): '(null)'; port: 3306
120926 16:03:42 [Note] - '(null)' resolves to '::';
120926 16:03:42 [Note] - '(null)' resolves to '0.0.0.0';
120926 16:03:42 [Note] Server socket created on IP: '0.0.0.0'.
120926 16:03:42 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
120926 16:03:42 [ERROR] Do you already have another mysqld server running on port: 3306 ?
120926 16:03:42 [ERROR] Aborting

120926 16:03:42 InnoDB: Starting shutdown...
120926 16:03:43 InnoDB: Shutdown completed; log sequence number 1595675
120926 16:03:43 [Note] wampmysqld: Shutdown complete
"

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: RiggsFolly (---.as13285.net)
Date: September 27, 2012 12:13AM

I guess this may be a bit of a clue


120926 16:03:42 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
120926 16:03:42 [ERROR] Do you already have another mysqld server running on port: 3306 ?
120926 16:03:42 [ERROR] Aborting

So do you have another MySQL server running?

Did you try XAMPP or installing it from the MySQL site before trying WAMP?

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 27, 2012 05:29AM

No i i didn't maybe windows SQL server which comes by default?

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 27, 2012 08:14AM

Additional information (if it can help): i am using a dedicated server i just purchased online not using wamp on my physical computer here.

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: stevenmartin99 (Moderator)
Date: September 27, 2012 08:31AM

Get Teamviewer and ill take a look now if you like

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 27, 2012 09:17AM

Still here Steven? I am googling Teamviewer...one sec

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 27, 2012 09:20AM

ID: 975 223 701
Pwd: ####



Edited 1 time(s). Last edit at 09/27/2012 10:11AM by stevenmartin99.

Options: ReplyQuote
Re: How do you set a new user using the mysql console?
Posted by: mballom (---.onlinehome-server.com)
Date: September 27, 2012 09:53AM

Thanks Steven for the great and very exceptional help smiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.