Jump to content

Recommended Posts

Ok guys. So ive had mysql installed for a while now on my debian server and im starting to host a couple sites off it but theres 1 MAJOR problem. I dont have a root username. I have a username, but its debian-sys-maint and it doesnt have all priviledges like add user. so im stumped. Ive looked everywhere for some help and i cant find any. So can anyone tell me how to get a root username back on the server?

Link to comment
https://forums.phpfreaks.com/topic/130786-solved-root-user/
Share on other sites

Have you tried actually loggin in as root? If you haven't yet set a password this should get you in....

 

mysql -uroot

yes, i have. ive had this installed for a while and i think somehow the password got changed or the user got deleted so how do i get it back/reset it?
Link to comment
https://forums.phpfreaks.com/topic/130786-solved-root-user/#findComment-678811
Share on other sites

No, it won't touch anything within /etc. /etc is where you store configuration data, one of dpkg (apt's packend) main objectives is NOT to overight users configuration data with prompting.

 

It will however install mysql server if it has not already been installed via apt.

Link to comment
https://forums.phpfreaks.com/topic/130786-solved-root-user/#findComment-678842
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.