Ubuntu :: Install Mysql Without Setting Root Password
Dec 28, 2010Is there any way i could install mysql without setting the password for the root account during installation? preferably using the command line.
View 4 RepliesIs there any way i could install mysql without setting the password for the root account during installation? preferably using the command line.
View 4 RepliesUsing 11.04, and just installed mysql 5.1.54 using synaptic
I was following the instructions here and the installation when fine,
except that I never got a screen to set the root password.
When I try to set the password using these instructions, following either
"If you have never set a root password for MySQL" $ mysqladmin -u root password NEWPASSWORD
OR, since the first method failed me, then: "However, if you want to change (or update) a root password, then you need to use following command" $ mysqladmin -u root -p'oldpassword' password newpass
Either way, it fails. Question:
1) why am I not being prompted to set a root password during installation?
2) what can I do now to fix this??
I am trying to learn Mysql, so don't presume I know anything about command syntax (cookbook instructions) For example, the first command above,I tried with with NEWPASSWORD in quotes, and then without. Likewise for the second command.
I edited fstab to automatically mount my windows data partition on boot, but I screwed it up by not specifying the file system type, however that is not the problem, I was able to fix that easily. The problem was that when it failed to mount the partition, Debian automatically entered root and I guess that is to be expected in order for me to fix it, but I never configured a root password and it just gave me full root access without asking any password, not even my user password. I though that was strange so I set the root password and sure thing it asked me for the root password this time without automatically logging into root....
I then tried to lock the root account to see if it will ask me for a password or not, it did but of course I wasn't able to login as root because it was locked now and I was left with no way to access the system. I had to fix fstab from a live cd so that I can login normally as the user....
I didn't know what to search for or if that is the expected behavior if you don't set root password during installation, but it just seemed a bit strange to automatically enter root when you specifically disable root login during installation...
I have forgotten my root password for MySQL, what can I do to recover it, I've found a few guides but they don't work on the newer versions of Ubuntu.I am running on Ubuntu 10.04 server so MySQL is an upstart job so the methods I've seen with launching it without the access checks haven't worked for me
View 4 Replies View RelatedI have forgotton my root password for mysql. I followed some instructions on a website and now I am not sure what i have done?Basically, when I now try and start mysql I get a notification that i have converted the init script to an upstart. I dont know what this means.
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start( utility, e.g. start mysql mysql start/running, process 20301.
When I installed the OS, I wasn't prompted to set the root password. Is this a bug, or did my install hose up?
View 4 Replies View Relatedfor resetting the root user's password. Actually, I am using www.linuxzoo.net for online practice of Linux and have MySQL installed on it. But I forgot the password I set. There was no password by default set for the root user. So, I just trying setting a password last week. Now I am not getting what I did.
View 13 Replies View RelatedFollowing guide for CentOS 5.5 i've installed mysql server on my box.Next step was setting up password for root user.As you undestood, it failed. output:
Code:
# rpm -qa | grep mysql
mysql-devel-5.0.77-4.el5_5.3
[code]....
is there any way to remove the root password in mysql,if can what is the command to remove it.
View 3 Replies View RelatedI forgot my root password for mysql, and after some searching I found several solutions to fix it. But none of them seem to work.I tried this article http://ubuntu.flowconsult.at/en/mysq...root-password/ with starting mysql with the --skip-grant-tables option. The problem is that nothing happens, it just hangs.Also tried the the --init-file option, that one runs fine, at least it returned to the command line. But the sql query in the file to which it point doesnt seem to do anything. The password wasn't changed to the one I specified in the sql file.Any idea what could be going on here, and how I could fix it?
View 3 Replies View RelatedTo install horde/ imp. I found this page : [url]
I get stuck at the part where it says Youll need to use the MySQL root password. Then, in your database administration screen for MySQL, set the password for the new MySQL user horde to something nicely random and hard to guess; keep a momentary record as youll need it below.
It is really frustraing to get stuck at something so simple as installing horde imp on centos. how to get it installed on a CENTOS 5.x system ?
i booted into linux single mode thru lilo but i can't use any commands in slackware that changes the root account or user account using passwd root command
View 1 Replies View RelatedHow can I change the root password of MYSQL server. I have just finished installation, but I mistakenly typed the wrong root password, and now I need to change it from command line, because I cannot even access the UI.
View 8 Replies View RelatedI'd like to keep root pw==sudo pw==user pw on a box with Code: $ lsb_release -ds Ubuntu 9.10 $ uname -rv 2.6.31-22-generic #61-Ubuntu SMP Wed Jul 28 02:02:56 UTC 2010 Just now it hung going to sleep, so I shutdown via BRS. On cold boot, HD mount failed and I got the prompt to hit Esc to goto maintenance shell. I did that, got the prompt for the root password, and entered my sudo.
That failed! though it has worked before ... but I changed my user password on that box recently, and I'm pretty sure I haven't needed to fsck between then and now. I'm wondering: What do I need to do to set my root pw? I was able to C-d out of the shell, and karmic took care of itself, but I'd prefer not to rely on that. Is there a way to make my root pw always equal my user pw? If so, is that a Very Bad Idea?
I set up a servber on my local machine, & also PHp - Both working fine.I'm trying to load up MYSQL i have installed it, & *can* start/stop the server. however if I do anything else with it, I get this error :-
Quote:
root@gordon-desktop:~# sudo mysqladmin -u root -h localhost password MYPASSWORD
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Query :-
1) How do I know MYSQL is actually active ? (apart from the message it says that its statrted (or stopped).
2) Is there a way to
a) Find out the usernames that are recorded on the MYSQL server ?
b) set / RESET the 'root' username (I know MYSQL root user is different to PC root user)
c) anything else I can do on the PHP / website code to see if MYSQL is working
(as yet, no tables / databases etc have been set up - as I can't get past this error message - I get the same error when setting up a database.)
Ps I did allow my usermname (when logged in to ubuntu) to edit / create files in the /usr/www/ directory (but it is still OWNED by 'root' - that directory)
Is there a non-root, portable distribution of MySQL for Linux? I need to do some testing on a server that I do not have root access to.
View 2 Replies View RelatedMysql starting problem after changing mysqladmin password.I tried all the solutions available on forums, but not solve the problem.At last I restored the mysql db backup, this make mysql service start, but till other databases not showing all tables.
View 1 Replies View RelatedI have tried many different ways to interact with the mysql to reset the root mysql pass. This is what I got to right now
Code:
#!/bin/sh
newpass=$1
service mysqld stop
mysqld_safe --skip-grant-tables --skip-networking &
echo "use mysql;" >> /tmp/mysql_pass_reset.txt
echo "update user set password=PASSWORD("$newpass") where User="root";" >> /tmp/mysql_pass_reset.txt
[Code]...
need a root password to install a printer driver. I have just upgraded to Ubuntu 9.10 have used the usual sudo command in the terminal window BUT when I try to type in a new root password the text entry is locked , so can't type anything.
View 7 Replies View RelatedTrying to install printer and system is asking for root password
View 9 Replies View RelatedI want to install a Lexmark printer which for some crazy reason wants the root password. The deb installer will not take my password which has sudo privileges. I understand that Ubuntu locks the root pass, but how can I get around this?
View 1 Replies View RelatedI'm trying to do a fresh F11 install on a Athlon 64 dual core 4 gigs ram, nvidia gforce 9400.I set the root password, when press next nothing happens. I press Ctrl+alt+ backspace and i see:Code:Fatal IO error 11 (Resource temporarily unavailable) on X server: 1.0Then system halts and says its safe to reboot.
View 2 Replies View RelatedMy root has chosen its own password for me as the chosen by me doesn't work.
View 5 Replies View Relatedi want to change the root password for i.e my actual root password was XXXX i tried doing something like :
"agent3@linux-bzf1:~> su -
Password:
linux-bzf1:~ # passwd
Changing password for root.
New Password:
yyyy "
did the reenter passwd stuffs...then i did a reboot saying that yeah i've changed the password,but SURPRISE,now i got 2 root password,weird?
I want to copy a file into my Root folder but I cant.what should I do?
View 2 Replies View Relatedhave managed to lock myself out of my root account...I just installed openSUSE 11.4, and during the install, I set the root password to be different then my regular user password. Both passwords I've used for a while and know backwards and forwards so it's not a case of simply forgetting a new password.The thing is, I managed to mis-type the root password wrong 2x in a row. I have tried all my passwords numerous times, with and without caps lock, I've tried su -, sudo and logging in directly as root. All to no avail. It always returns authentication failure.I know this is a worst case senario and am expecting that the easiest way to fix is just to reinstall (Not a big issue since I just installed) but I figured I would ask if anyone had a good way to fix this
View 7 Replies View RelatedI have a fresh install of Squeeze with CD1. I have no root password to open admin apps, so I set one with 'sudo passwd root' and then I'm able to open them, but only once. I have to set the root password every time prior to opening an admin app. Am I doing something wrong? Could I be missing a package?
View 14 Replies View Relatedi just read that in fc12 you can install sighned packages without root password?
View 1 Replies View RelatedIs there a way to login to an account with only the root password? Because I really need it the first unlock the computer next to me and second because I just want to know.
View 9 Replies View Related'm running openSUSE 11.2 with KDE 4.4.2.
Since i installed KDE 4.* Whenever I go to shutdown, I get the shutdown dialogue, I hit shutdown, it logs me off, shows some text on shutdown screen, and then opens up the GUI again, bringing up a small window, where It asks for the root password, in order to shutdown. If i don't give it the root password, it goes to the login screen.
I cannot, any way, command line, GUI, or anything, shutdown without providing a root password.
If I use the command shutdown now, as root, it logs me off and goes through an endless cycle of logging off, and then asking for root to shut down, and not shutting down (All on the CLI), and everytime i give it the password, it cancels shutdown and goes back to the prompt. I eventually have to pull the battery to kill it in that case..
I have tried chmoding the shutdown scripts to make it work, it doesn't.