473,379 Members | 1,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

URGENT - user permissions

32
I was using a front-end client (MySQL Administrator) and in the process of adding a new user, I deleted the 'root' privileges. I can still sign onto the 'root' account, but I cannot access any of the databases. This was the only login in the system that has full rights such as this. Is there some script I can do to give myself full privileges again?
Jul 2 '07 #1
3 1665
bartonc
6,596 Expert 4TB
I was using a front-end client (MySQL Administrator) and in the process of adding a new user, I deleted the 'root' privileges. I can still sign onto the 'root' account, but I cannot access any of the databases. This was the only login in the system that has full rights such as this. Is there some script I can do to give myself full privileges again?
I dug this answer up on google.
"DBS" <help@stripped> wrote:
> I have a problem, It's been months since I used MySQL and (I believe) I had
> set it up with a root password. Now I can't log on to MySQL as root MySQL
> user and create a new user or manage an existing user (I can log onto server

Familiar situation. :)

Do so:

service mysql stop

wait until MySQL shuts down. Then run

mysqld_safe --skip-grant-tables &

then you will be able to login as root with no password.

mysql -uroot mysql

In MySQL command line prompt issue the following command:

UPDATE user SET password=PASSWORD("abcd") WHERE user="root";
FLUSH PRIVILEGES;

At this time your root password is reset to "abcd" and MySQL will now
know the privileges and you'll be able to login with your new password:

mysql -uroot -pabcd mysql
Jul 2 '07 #2
jgentes
32
I tried google myself, but I guess I wasnt using the appropriate search terms. THANK YOU!

1) is it necessary to be at the specific terminal? because I am hosting it somewhere else.

2) after I do that will I need to do service mysql start ? or something? or will it automatically restart after I login with the blank root permissions..
Jul 2 '07 #3
bartonc
6,596 Expert 4TB
I tried google myself, but I guess I wasnt using the appropriate search terms. THANK YOU!

1) is it necessary to be at the specific terminal? because I am hosting it somewhere else.

2) after I do that will I need to do service mysql start ? or something? or will it automatically restart after I login with the blank root permissions..
You are welcome. The keywords were "MySQL lost password".
I'm spoiled, in that I always have my hands on the server (development machine). From here MySQLAdmin has no problem stopping the service.

I'm guessing that you'll need to restart the service.

Good luck.
Jul 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: cv | last post by:
Hello All, I have used MultipartRequest like the following to upload images. MultipartRequest multi = new MultipartRequest(request, "../webapps/coreprogram/dealerlogos", 1024 * 1024); It...
2
by: Sai Pavan | last post by:
I'm developing a web application i.e. asp.net. I have added a key named "Provider" in web.config file as follows <appSettings> <add key="Provider" value="3"></add> <add key="OracleClient"...
3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
0
by: Florian Marinoiu | last post by:
Hi I have a managed .dll that I call from an unmanaged dll. I have registered the managed dll with regasm and I have made a .vbs file where I instantiate an object of the managed dll, I call one...
14
by: Richard Střen | last post by:
Please help! We suddenly started getting the following error message when we try to run any asp.net web application on the web server : Server Application Unavailable The web application you...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
2
by: hulinning | last post by:
Hi, I create my Webservice in 2003 VS and test in Windows 2000 and Windows XP Pro without any problem. When I deploy it over Windows 2003 server, It fails to connect to the WS. I got Anonymous...
5
by: tjaink | last post by:
Hi I have a vc++ dll and its stored in Windows directory. I am using OS Windows 2003 server. And i am using ASP Legacy application migrated from NT to Windows 2003 server. Now there is no problem...
6
by: xhe | last post by:
I am using ffmpeg to convert video, this is a sample script: $str='/home/transla1/bin/ffmpeg -i /home/transla1/public_html/ cybertube/web/uploads/video/31_AK000005.AVI -s 240x180 -b 100k -ar...
2
by: =?ISO-8859-1?B?RulybmFz?= | last post by:
Hey all, I have a URGENT problem and I hope someone could help me... scenery: I have a windows app, coded using C# (framework 1.1 - VS2003)... The exe and dlls of the app is are stored in a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.