Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





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 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 !
Password Cannot Login
I had problems in one of my user's account, I used phpMyAdmin to edit this user and changed his password. Whatever I change his password, he just cannot login, even very simple password such as "1" can't do the work...
When I remove the password, he can login normally.
I have checked the password field on the mysql table which is long enough to hold the full encrypted password, although I noticed an asterisk * was put at the beginning of the encrypted password, which was not found on other accounts
I had a similar problem before and then I noticed my "username" and "password" field is too short to hold the whole username information, I fixed it by increasing the field length. I don't know why that happens... Migration from non-unicode to unicode database perhaps? Or being hacked in?

View Replies !
Password Login
i have a simple java code for a password login but it only allows one user name and password, do i need mysql to have more users and i also want a registration page.

View Replies !
Login Password Problem
I am running Mac OS X 10.4 (PPC) I have installed MySQL server and have the use account mysql but I have no idea of the password. When the install ran it did not give me the opportunity to set a password and I can not find anywhere that states a default password.

View Replies !
Login / Password Encryption
i am trying to create a very simple login system. all it does it input user data including a password and then when logging it it compares user name and password entered to find the user id (if exists) and then says you are logged in if a result was found. my problem is no results are ever found.

i have found that no matter what i do the password() function never returns the same value when im trying to select a user id with password=password('$inputedpassword') in the query to look up the user id.

so basically when i register the password is turned into a mess with password(), but wheni log in and use the same password() on it, it gives me something different.

BUT if i register under another user name and then use the same password, password() will give me the same mess (i checked this in the databse).

so i dont know why password() wont do the same thing when im using it in the query in login.php so that i can compare the passwords correctly. the only way i've been able to get this to login is to not encrypt anything. i have tried using md5 but that is giving me this same problem too. Code:

View Replies !
Root Password :: Cannot Login To Mysql
i am new to mysql.i have installed mysql software which is provided with Linux CD .i need to provide password to root.i updated the user table to give password to the root.after restarting the mysqld service , i couldnt enter into mysql .one error message is displaying

ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

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 !
Login :: File To Read For Username And Password
What file is read for username and password, i know in the wizard you set this up but what file is read with the userames and passwords?

Ok i was reading that i can access the database via web interface i tried http://localhost:3307 but nothing ....

View Replies !
I Changed Root Password But I Can Not Login With Changed Password
I changed the password of root with
update user set password=password('newpassword')

Then I exited. But when I want to login again , it cannot authenticate the root
I should tell you that a hacker had changed my root password before. Because it was not encrypted before.

View Replies !
Creating A User Login
I am designing a website, which is almost complete, but would like to allow users to create an account, and login and out.

Is there an easy way to set this up? I have experience using MySQL but only through forum software such as phpbb and portals like phpnuke. These obviously set this up for you.

View Replies !
Creating User Login With Database
I'm fairly new to using databases and I am wondering how you go about creating a user login with your database. I need to create a login system for a website. Would you use a CREATE USER statement every time you want to add a user, or is that a way for having developers access the database only? I also thought of creating a user table that would contain the users name and password, but how secure would that be?

View Replies !
Create User :: User Created But Password?
If I run the below statement as a user with the create permission turned on, the user gets created but without the password. Any suggestions?

CREATE USER 'fcms_testUser1'@'localhost' IDENTIFIED BY 'dumbpass12A'

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 !
Table Creation Based On User Login
I'm trying to build a website that will allow the addition of users (w/ username, password, etc.).

That seems simple enough.

But is it possible to set something up (in PHP, for example) that will create a new table in the database for each new user?

Ex. John Smith signs up, is verified, and a PHP script (or Java, or whatever) creates a table specifically for him.

I know I'll need a master table of usernames, passwords, etc. These new tables would store certain user-specific data, such as preferences and other data the user might want to restrict access to.

I know I could store all of this information in a master table, but I'm trying to think ahead. Worst case scenario, if there are millions of users (unlikely, but not impossible), I'd hate to have all that data in one table, but if I have to, I can.

View Replies !
Database Sync Based On User-login
I really want to know if it's possible to tell a mysql database to sync whatever changes are done on it BY A PARTICULAR USER to another database.

This sort of logic:

If UserX logs in
then whatever changes he makes: sync to secondary DB.
Else
do nothing;

Is this possible?

View Replies !
Login As Root User, And Grant Create Database Privileges
I am new, and I have been trying to find info on this unsuccessfully.

Ok, so I am using Unix Terminal from my Mac.

From the command prompt, I use

Shell>/usr/local/mysql/bin/mysql

to log in to the localhost user.

Now, from the command prompt, i have tried using ,mysql -u root, and it says command not found!

View Replies !
Adding Mysql User - Only Root Is Able To Login From A Remote Client.
hey all. need some quick help with user admin in mysql.

so currently, I have a linux box with port 3306 open or mysql administration using navicat. I'm able to connect to the mysql server through navicat if I'm using the "root" username.

For some reason, whenever I atmysqlt to add a new user to mysql, i'm not able to connect to mysql through navicat or the mysql prompt.

First, trying to add user for localhost:

INSERT INTO user (Host,User,Password) VALUES('localhost','aaron',PASSWORD('abc123$'));

Then grant privileges:

GRANT ALL ON *.* TO aaron@localhost;

Now when I try:
$mysql -u aaron -p

I enter in the password (abc123$) and it tells me access denied.. What am I missing?

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 !
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 !
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 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 !
Default Password And User-id For DBA???
what is the default pw and user-id for Mysql log-in ???

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 !
Create A DB With A User And Password
How do you set a user name and password from the command line?

something like

mysql>create database myDB -user myUser -password myPass

Is that correct?

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 !
Change Your User Name And Password For MySQL
I only know and have access to a password to access MySQL.

So how do we know what our user name is or how do we change our user name and password for MySQL once we have and know this information?

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 !
Creating A User With A Hashed Password...
CREATE USER 'delete'@'localhost' IDENTIFIED BY PASSWORD PASSWORD('delete');

CREATE USER 'delete'@'localhost' IDENTIFIED BY PASSWORD 'PASSWORD('delete')';

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 !
Displaying User Last Login Like "3 Days, 2 Hours Ago"
I have a table "user" with a field "lastlogin" that stores a basic datetime of the last time the user logged in
Do you know of a fast function or class that can convert that field into a more readable "User last logged in: 3 days, 2 hours ago" or something similar?
I've seen this everywhere and I don't like reinventing the wheel

View Replies !
User ID And Password For Querying TextLink Database
What is the User ID and Password for querying Follett's TextLink database.
I am using Adaptive Server Anywhere.

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 !
Mysql_connect(): Access Denied For User: '_@_' (Using Password: YES)
I used my same user name and password that I created for mysql and I am still denied access.

Error Message:
mysql_connect(): Access denied for user: '_@_' (Using password: YES)

View Replies !
Web Design Needing A Database
I have made a website called www.freepspwallpapers.co.uk At the moment i am listing images on here which are simply added in HTML, however, i want to be able to put all my images into a database and pages to be generated?

Is myXQL the right program/software/database? If so, what is the best way to get started? Do i need any special tools or programs?

If i were also to ask about bells and whistles for my site, i want a feature that makes the people visiting have to register before being able to access the pages on the site (example - www.joke-central.net) and also for the site to measure downloads.

View Replies !

Copyright 2005-08 www.BigResource.com, All rights reserved