Setting User Password
I am having a problem getting mysql to recognize my user password. Currently I am doing everything on 'localhost' [CASE]
My root password works; I have access and can create databases as root.
I used MySql Administrator to create a user 'bill' and gave that user a password (billpw) different from root and applied most of the global privileges including 'CREATE'.
I can open mysql with root and rootpw. As well, I can open mysql with user 'bill' and rootpw but NOT with billpw.
[bill@CASE ~]$ mysql -u bill -p
Enter password:
ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)
Even when I open Mysql with bill rootpw, I get the following:
mysql> CREATE DATABASE menagerie;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'menagerie'
I can CREATE the DATABASE as root.
I have read Section 5.7, “The MySQL Access Privilege System” and nothing seems to apply -- but that could just be newbie ignorance.
Do I have some Linux permission problem related to MySql or have I done something wrong when creating my user ? How can I check for the error?
View Complete Forum Thread with Replies
Related Forum Messages:
Random Password Vs. User Created Password For Site Login
Are there any security issues or other concerns that make one preferable? The client is pushing for user created passwords. I'm mapping out the basic functionality and front-end for a MySQL/PHP back-end that will be completed by a third party. I'm a novice to MySQL but familiar with PHP and their interaction. Mainly looking for anything to support one method over the other.
View Replies !
Setting Password
I successfully added MySQL, setup db's and did initial app development. I did all of this under the root user and blank password. When I ported the new development to the web site I tried to setup a user and password for the application and set the root password and ran into a brick wall. I am now locked out MySQL in terminal mode, phpAdmin will not save a config, MySQL GUI Admin will not save passwords and under options it says it cannot locate the /etc/my.cnf file. I have looked at a number of tutorials to set up the my.cnf file and they seem to conflict with one another and have been reticent to take action to make sure I was going in the correct direction. I am using QS10.4, phpAdmin 2.11, MySql 5.05, GUI Tools for 5.0. Can anyone point me the right direction to line up all of the security related files to get control back, successfully run the app on the local environment and and continue development.
View Replies !
Setting Password Fails
The reported problem when attempting to set up a root password is; C:mysqlin>mysqladmin version mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to MySQL server on 'localhost' (10061)' Check that mysqld is running on localhost and that the port is 3306. You can check this by doing 'telnet localhost 3306' When checking this: C:mysqlin>telnet localhost 3306 Connecting To localhost...Could not open connection to the host, on port 3306: C onnect failed.
View Replies !
Setting Password Problem
i've created my database and now i want to access it through php so im using:mysql_connect('localhost:3306', "username", "password") or die(mysql_error()); but i haven't yet set a password and don't know how to, so when i run the file it comes up with the error mysql_connect() [function.mysql-connect]: Access denied for user.Is this because i need to set a password and username,if so then how? or is it maybe another different problem?
View Replies !
Setting Up The MySQL Password
I can't seem to see the page whan I am trying to set up the 'Setting Up the MySQL Password'. I know this is right at the start but all I get when I type in the Web browser http://127.0.0.1/myadmin is the sourcecode and not the actual log in page... I know it's something silly I have done or not done (I have installed the Apache / MySQL / PHP stuff over and over again, but it still does the same thing to me. The Apache services is running fine. The WinMySQLadmin is on green so I know that's fine. I think it's maybe an explorer thing? but I can't seem to get it.
View Replies !
Setting Up Password Fails
Having a problem setting up a password for MySQL The reported problem when attempting to set up a root password is; C:mysqlin>mysqladmin version mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to MySQL server on 'localhost' (10061)' Check that mysqld is running on localhost and that the port is 3306. You can check this by doing 'telnet localhost 3306' When checking this: C:mysqlin>telnet localhost 3306 Connecting To localhost...Could not open connection to the host, on port 3306: C onnect failed
View Replies !
Setting Root Password
I am using MySQL 4.1 on Win XP.I forgot my root password and I am trying to reset it. I am using the SQLyog GUI to manipulate my DB.I have a guest password stored in SQLyog and can access all of my databases.But I can't use SQLyog to change the password b/c it uses the new password alogorithm which is hashed to 32 characters opposed to 16 in the old alogorithm.I was wondering a way to reset my root password. I only have minimal privileges on this account such as SELECT. Just in case anyone missed it, I can't log into my MySQL command line client since I don't know my root password.I would normally use OLD_PASSWORD('password') from there.
View Replies !
Access Denied For User: 'user@172.22.0.1' (Using Password: YES)
I am currently running two servers one with Tomcat and the other with MySQL. They are both in different Windows domains and on different network segments. I have the following users on the MySQL server: user@localhost user@% I am getting a VERRRY SLOOOW connection between the two machines so I thought I'd add a user just for the Tomcat server. The IP address of the Tomcat server is 172.22.0.1 so naturally the user would be 'user@172.22.0.1' When I added this user I got the following error Access denied for user: 'user@172.22.0.1' (Using password: YES) Any ideas on what I can do to remedy the situation?
View Replies !
Authentication :: Setting Root Password
I am trying to set the root password, but all I get is: $ ./mysqladmin -u root password <newpassword> ./mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' I have no problems connecting like this: ./mysql -u mysql In the latter case, I cannot do anything. For example mysql> CREATE DATABASE one; ERROR 1044 (42000): Access denied for user ''0'localhost' to database 'MoonlightDB'
View Replies !
Setting Password For MySQL From WAMP?
A few months back I installed WAMP (one big installation of Apache, MySQL and PHP for Windows). The last week I'm busy with Portal development. As a result I'm trying to install Jetspeed-2. The installer of Jetspeed asked what Database I would like to use. As I installed WAMP I thought it wiser to stick to MySQL. When I started phpMyAdmin I saw the following message: "Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account." As it is some time since I installed WAMP I cannot remember what I need to do. I searched the install directory and found that the word password is contained in several .ini files (my-huge.ini, my-innodb-heavy-4G.ini, my-large.ini, my-medium.inim and my-small.ini, but not in my.ini). The format of the line is: #password= your_password I take it I need to remove the # at the start of the line, replace 'your_password' with a password of my choosing? But in what ini file? How does WAMP know what ini file to choose? In the same directory as the ini files I see a wampserver.conf file. In it there is an entry: $mysqlConf['mysqlConfFile'] = 'my.ini'; Does this entry make WAMP to choose for my.ini? I plan to use the WAMP/MySQL installation purely for development purposes.
View Replies !
Setting Password & Salt Then Cannot Login
I go into "phpmyadmin" mysql admin gui and set a passwd and salt for an account ..... i enter username as <usernametext> ... that is plaintext i enter passwd as sha1(<passwdtext>) so it displays in table encrypted i enter salt as <salttext> .... that is plaintext now below is authen logic for login .....
View Replies !
Setting Up Root Password For Mysqldatabase
I have Fedora Core 4 installed in my pc and I need to setup mediawiki. In the process of setting up mysql database (to create root password), I did as instructed, typed - 1. mysql_install_db 2. mysqld_safe it replies - Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/run/mysqld/mysqld.pid 060323 15:22:34 mysqld ended but when I try to type mysqlshow, it gives this error instead mysqlshow: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) I could not setup the root password for mysql bcos of this error.
View Replies !
Setting Mysql Root Password On Mac
Am having problems setting the root password for the mysql server on my computer. I'm using Mac OS X with apache, php 5 and mysql 4.1 installed. I've tried using the terminal utility but I've had an error message reading:
View Replies !
Setting Root Password For MySQL
I'm Using the "Build Your Own Database Driven Website Using PHP and MYSQL" by Kevin Yank. On pg. 22 where the arguments new password are in parentheses, I typed in new password instead of my own new password ( I know that was dumb!). Anyway, when I quit the Mysql and start over I get the error: cannot login to local host password not excepted. How do I restart so that I can create a root password for Mysql?
View Replies !
Setting MySql Root Password
I feel a bit daft as I can't seem to get passed p21 of Database Driven Website by Kevin Yank. But I'm learning Ive got the latest copy and and want to follow it through to see what i can learn (lots I'm sure) Im on a mac osx and am trying to set the root password. He says to do this using terminal in the bin directory of my MySql installation. Where is it? i know basics about getting round terminal i.e changing directories and stuff.
View Replies !
ERROR When Setting Password Via Console (MySQL V 5.1.30
I am trying to set a password via the console with the following: mysql> update user set pasword - password<'password'> where user = 'root'; and receive the error message: ERROR 1064 <42000>: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where user = 'root'' at line 1
View Replies !
Strange Password Setting Behavior In Fedora Core 4 (server 4.1.11)
I have tried adding users aided by several references and this typifies the procedure: http://dev.mysql.com/doc/mysql/en/adding-users.html But, I found that after adding them, I could not use them to get into mysql. I found my way to this reference, http://dev.mysql.com/doc/mysql/en/access-denied.html and on a hunch, set the password to '', that is, no password at all and find that now I can use them to get in. What is going wrong here? Also, I am finding that I cannot get into my database from a remote host, even though I use the '%' variable or even more directly, the actual 'RemoteHost' name.
View Replies !
Selecting User,password From User
When I do: select User,Password from user in MySQL, I get encrypted password. How can I see the real value? And, what is the proper (secure) way to access MySQL database from PHP or other scripting languages?
View Replies !
Setting Up User Access
I am trying to set up a little webhosting thing for my friends. I do have a pretty decent knowlage with linux but not mysql. How can you make users and limit them to edit ONLY one database? I cant quite figure this out. I have done a lot of research, maybe im just not looking in the right place.
View Replies !
Setting Up User Able To Create Databases
Using mysql 4.1.14, I'm trying to set up privileges for a user such that the user can create databases and then has full access to the databases he's created, including the ability to delete those databases, but not have any access to any databases he hasn't created. This should be trivially easy, but I can not work out how and where to set privileges to do this.
View Replies !
Importing And Setting Up New Database And User
I am having trouble moving a database and website from another host. Do we need to use the same user name and password that was previously setup? We changed the code to use the root and root password, seems some pages work and some are blank. I could not see how to setup a new user? so then we can try and use that to connect. The pages refernce this page main.php that has the following code. <?PHP mysql_connect("localhost", "entaction", "2a3wHTp1"); mysql_select_db("entaction"); $size = 15; ?> This was changed to use the rooot user and password because we could not see how to setup the same user for the database, I was able to import the database fine and shows in the databases? Need help getting this working using: phpMyAdmin - 2.8.1 MySQL client version: 5.0.24 Thank you for any help.
View Replies !
User And Password
I just installed mysql for the 5th time... and I tried to follow the refrence manual on how to delete the default users that comes with it and add my own with a password so there is no annoynomis acess. But something happened and where it should of said mysql> It just had -> A arrow.. and I coldn't fix it, so can someone tell me how to delete all the users and make my own with a password. I can take it from there. I've been trying to set this up for a while cause i've been learning cold fusion, I just can't get this to work somehow.
View Replies !
Set Password To User...
I am trying to create a "Main User" to one database who need to have the option to create another users to the same database. This "Main User" can't have access to mysql database. Connecting as "root" i can create the "Main User" with: GRANT ALL PRIVILEGES ON `db`.* TO 'main_user'@'%' IDENTIFIED BY 'some_pass' WITH GRANT OPTION; But when i connect to my server as my new user ("main_user") i can create new users to "db" as long as i don't try to set a password. This don't work: GRANT SELECT, UPDATE, INSERT ON `db`.* TO 'other_user'@'%' IDENTIFIED BY 'some_password' This work's fine: GRANT SELECT, UPDATE, INSERT ON `db`.* TO 'other_user'@'%' But I need tu set password to other users. How can i set password to this new user without giveing access to mysql?
View Replies !
Set Password For New User
i've created a new user for MySQL but without password. how can i set a password for this new_user? and, after i've change the actual password that is '' to 'new_user_password' how can i grant all privileges of the databases creted with username=root to this new_user? and, can i create databases with this new_user (i hope yes, that would solve all my problems right now) or it can only be done by the root user?
View Replies !
DB User/password Issues
I've looked on google and searched through these forum pages for issues similar to mine only to find no answer to people who have posed a similar question so I'm hoping I catch someone who can help me with this one. My MySQL will only allow me to connect to my DBs through the web if and only if my user password is set to blank. When using MySQL Administrator, I can have my root password set and log into that just fine but when I try to use root -> pw in say my phpmyadmin script, I get access denied errors. BUT, when i change my root password to blank (testing purposes only), the page loads just fine. The same results occur when i create a test user, the test username can only connect if the password is blank. If one is set, I get those access denied errors.
View Replies !
User Password Corrupted
Every now and then one of my users passwords gets corrupted in the database and I have no Idea why this happens. When the user registers I store the password like so: encode($user_password,$encryption_key) I use decode when they log in to verify and match. Like I said every now and then their password gets turned into garbage characters. Does anyone know what could be causing this?
View Replies !
Retrieving User Password?
I created a mysql DB and I can't recall the password that I used for the main user. Something has come up and I need to retrieve the PW I created for the user, is this possible? If so, how do I do this from cpanel?
View Replies !
Change User Password
i am using mysql version 4.0.27-standard with php myadmin. i do not want to change the root password. in mysql section of my cpanel there is no link to modify or change mysql user, only delete or create it
View Replies !
Changing Password As User
I get an "ERROR 1133 (42000): Can't find any matching row in the user table " when I try to change my own password as a logged in user. According to the manual it should be SET PASSWORD = PASSWORD('newpass'); is this due to the wildcards in my allowed host? Or is the syntax different from what is in the manual? My server version is 4.1.14, client programms seems unimportant, the error stays the same with matching mysql commandline client, perl DBI or mysql querybrowser.
View Replies !
Security: No Password For User
I added a user 'b2evolution' via phpmyadmin. I also created and set a password in this step. But I get an error when I try to log in: $ mysql -u b2evolution -p Enter password: ERROR 1045 (28000): Access denied for user 'b2evolution'@'localhost' (using password: YES) But when I do this: $ mysql -u b2evolution I can login? I even logged in as root and set the Password for mysql.user b2evolution by hand,
View Replies !
User Cant Change Own Password
to change a password a user would need update privileges on an entire column, so she could change anyones password. [on a particular table] Am I right? so mySQL users cant change their own passwords, they have to plead with the admin...
View Replies !
Change The Root User Password
I have just set a password for the root user for logging into MySQL which all works fine by typing: mysql -u root -p A prompt appears asking me for my password which I enter and the usual welcome message appears.I initally set my root user password by typing at command line: mysqladmin -u root password "new password" ("new password" being the password I chose) This all worked ok. However I would like to know how to I change the password for the root user, and how would I also change the password for users that I set up (I assume it would be a similar way)? I am currently running all on my local machine (hence no need to use "-h" anywhere in the login procedure) and running on windows 2000.
View Replies !
Mysql.user.password In Session
I have set up a few users in the mysql Privileges and with my php pages I have them log in with a form (login.php) to access the next page (mainpage1.php) that generates info from the mysql db.I know it is not really secure to just have the plain text password stored as a $_SESSION['pw'] as I have now. but how should I store it in a Session to be used in other pages without the user having to enter it in each time the page wants to go to the db? Or can we store the $Link in a session? or somehow have it remember that the user is connected?as if I sha1() the password how do I get it back into a format that mysql recognizes?What is the best way of doing this?
View Replies !
Can I Set Database User Password When No Root Pw Is Set
I have installed PHPBB MediaWiki and SugarCRM on Ubuntu Server LAMP. I initially tried to set the root password on install and then could not log back in. After reinstall this is what I did for a new non root user. root@invest:~# mysql -V mysql Ver 14.12 Distrib 5.0.38, for pc-linux-gnu (i486) using readline 5.2 grant CREATE,INSERT,DELETE,UPDATE,SELECT on pauldb.* to paul@localhost; set password for paul = password('mysecretpassword'); flush privileges; exit; Then when i go to login with this user I can't. I have not set a password for root because the same thing happened when I tried to set root pw immediately after install of the database. This time I am trying to work out the access issue with a new user i have created. This way I still have access since and I won't have to reinstall the db.
View Replies !
User Not Needing Password For Login?
I've seen this problem for a while now, but since at the time I only needed 1 MySQL user for development purposes it wasn't a problem. Now, it's problematic. Btw, I have MySQL 5.0.22 installed. I created a user using the following command (I've tried this way and using GRANT): INSERT INTO user VALUES('%','XXXX',PASSWORD('YYYYY'), 'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y', 'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y', '','','','',0,0,0,0); Now, I see that row in the mysql.user table. I see the encrypted password, BUT when I try to log in to mysql from the command prompt using the user that I just created... it NEVER needs the password (YYYYY) that I set it to in the INSERT. >> mysql -uXXXX ^ That command takes me straight to the mysql command prompt. I am wanting the command to have to be 'mysql -uXXXX -p'... and then prompt for the password. Am I missing something?
View Replies !
Can Not Change Password For Root-user
I can't seem to change the password for my root-user in MySQL. When I go into mysql and type; UPDATE mysql.user SET Password=PASSWORD('mypassword') WHERE User='root' AND Host='localhost'; I get the following error; ERROR 1044: Access denied for user: '@localhost' to database 'mysql' How can I change my root-password in the best way?
View Replies !
How To Create User And Password In Phpmyadmin
I built a couple of databases on my new localhost for Joomla, and did not specify uesrname and password, and guess what? I know about the security issue, but worse than that, installation cannot continue until I can figure out how to create username and password, either in a sql window, or mysql console,
View Replies !
Can't Change Anonymous User Password
As defined in the Manual under '2.9.3. Securing the Initial MySQL Accounts' I'm trying to change the passwords for the anonymous user and I'm getting an error. mysql> SET PASSWORD FOR ''@'localhost' = PASSWORD('password1'); ERROR 1133 (42000): Can't find any matching row in the user table mysql> SET PASSWORD FOR ''@'%' = PASSWORD('password2'); ERROR 1133 (42000): Can't find any matching row in the user table ---------------- Also I'm having another issue. I can't run the commands from the /mysql/bin directory. C:mysql50in>mysqlshow mysqlshow: Access denied for user 'ODBC'@'localhost' (using password: NO) This does work. C:mysql50in>mysqlshow -u root -p
View Replies !
Can You Retrieve/restore A MySQL User Password ?
Subject: Can you retrieve/restore a MySQL user Password? I'm working on my own, local WXP, MySQL, version: 3.23.38-nt and I have the "root" password, and normally use the root account. I have forgotten one of the Passwords for a user account which I have set up. Is there any way to UnEncrypt the users password, so I can use that account again? Any handy function that the "root" account can use, to determine a user's password? OR Should I delete the account and start from scratch? OR Should I re-apply GRANT statements so as to reset user/pass info?
View Replies !
Access Denied For User 'root'@'localhost' (using Password: YES)
I am trying to login to mysql using 'mysql -u root -p' with password.but iam getting this error "Access denied for user 'root'@'localhost' (using password: YES)". i have googled for this error and i saw that if i enter a wrong password i get this error.but i am 100% sure that the password is right because i used it in a sample program where i gave that password to connect to mysql.
View Replies !
|