Passwords / Authentication
I have just started messing around with MySQL and something I find weird is that we connecting using localhost, if I supply the password, it will not authenticate...if I leave the password off, it's fine.If I connect from another machine, it requires the password or it will not authenticate.Is that normal?
View Complete Forum Thread with Replies
Related Forum Messages:
Passwords & DBI/DBD
I installed the current stable release of MySQL from RPMs. I used the client and server packages. After installing the server package, the RPM printed a note saying I should run two commands. I only got the first one, which was # ./mysqladmin -u root --password I assume this gave the root user a password. I then downloaded and proceeded to compile the Perl DBI and DBD:mysql packages. The DBI package installed fine after I also installed the "MySQL-devel" RPM. Code:
View Replies !
Where Passwords Are Kept
I am just starting out using mySQL. I created some databases and tables and installed mySQLcc to ease my usage. After about 4 months, I've needed to make some changes that needed root access. I appearantly wrote down the wrong password so I couldn't make any changes. In the process of trying to change the password I think I changed it again and unsynced mySQL and mySQLcc because now I can't access any of the databases with any user. Although I can still open mySQLcc, it can't connect to the database. I get access denied no matter what I do. Is there a way to clear the passwords and start over? Where are the passwords kept? Or do I have to remove mySQL and reinstall it and start over?
View Replies !
Inserting Passwords Into DB
I have a couple of questions concerning the insertion of encrypted passwords into a mysql database (4.0) first, some admins seem to think it's a good idea to feed the password in plaintxt to the db and have the db encrypt and store it. I tend to think this is less secure seeing as there is no seperation between the data and the encrypt/decrypt so therefore encrypt the password beforehand and I want to insert nand retreive it that way. What type should I be using with the store, and what's the best way to store and retrieve it with that type?
View Replies !
My.ini :: Add A Line To Old Passwords?
I read about the problems related to the usage of phpMyAdmin und mySQL > 4 because of the password. It was written everywhere to add a line 'old_passwords' into the my.ini configuration file. I have no clue what file (and where it is) I have to change on a os X installation. Who could give me a hint?
View Replies !
Users Passwords
I use the windows mysql connector 3.51 to connect to a mysql database on a linux server. I also have local library on the windows station that supports sha type encryption. What I'd like to do is encrypt the userid and passwords entrys locally with this library and still connect to linux server but have not been able to. What is the default encryption that mysql uses for passwords ? I did read about the password function and it did mention a bit about sha but I'm still unable to match the encryption locally.
View Replies !
Passwords For Myadmin
I am looking for a way to setup a username/password to myadmin. I made the mistake of showing other the website for admin work and now they are messing it all up.
View Replies !
Best Way To Store Passwords
I've written a windows based from end for a mysql database that will work across a local intranet, it stores usernames and passwords for a reporting system, what is the best way to store the passwords int he db? i.e encrypted or?
View Replies !
Understanding Passwords
1. I know in mySql you need a username and a password to access a database. However, can you set a username and password (or even just a password) to access a table or a row? 2. Is there a way you can set a database so you can only add data? 3. is there a way I can have people access values to a database (php) without using a password? 4. is there a way to set up diffrent users (with diffrent permissions) for accessing mySQL data? 5. Any comments about how I can get alot of people accessing a database, from diffrent websites, with keeping i as secure as possible?
View Replies !
Transferring Passwords
I tried doing a search but did not find the answer I was looking for. I just redesigned the database that I had created a few months ago. I broke my one single table up into multiple tables. My problem is that in my old large table I had a password column that is populated by using Password(). Is there a way for me to transfer the info from that column to my new broken down table set? I did not create a new database when I broke up the large table, I just built my new tables around it so they are all stored in the same database. I'm not sure if that makes a difference or not. Is it possible for me to just copy and paste the info from one of the fields into the new table? Or will that break the encryption?
View Replies !
Encoding Passwords In MySQL
I am developing a database application in which I store usernames and passwords. Naturally I want to store the passwords in an encrypted form. However, just like you see in many web applications, I want to be able to email the users password back to them should they forget their old password. I looked at how to store the password data in MySQL and they recommend using MD5 or SHA. Both of these appear to be one way encryption routines. IOW once I encrypt and store the users password there is no way to unencrypt it. How can I store passwords in my SQL database such that I can convert them back to plain text when the user requests them?
View Replies !
User Accounts With Passwords
I am able to connect to the database using users that are not password protected. After updating privileges to use passwords and changing login info(in a php document) I recieve the following error from the php document: Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in c:inetpubwwwrootgindex.php on line 9 Warning: mysql_query(): A link to the server could not be established in c:inetpubwwwrootgindex.php on line 9 I am attempting to connect as 'test'@'localhost' with the password 'test'. If I remove the password, I can connect no problem.
View Replies !
Transferred DB, Now Passwords Not Working..
We just switched hosting companies and transferred 3 of our DB's from the old server to the new. Everything seemed to go alright. Our sites are reading from the DB's however none of the users from our DB can log into the website. When a user signs up to the site we use the MYSQL PASSWORD() function to enter the users passwords into the DB.
View Replies !
Passwords Getting Corrupted On Import
i have a large dump of user table which has a password field containing hashed password (used mcrypt for encryption) when i import the dump using command line only the passwords get corrupted. I dont know how ?
View Replies !
Authentication
I'm new with mysql and I feel very stupid for having to ask this but I'm trying to program against it and I don't know what my username and pw are. When I installed it, I put in a pw so I'm pretty sure I know what that is, but what is the username I should be using when trying to execute sql commands against it with php?
View Replies !
Mod_auth_mysql Or Mysql Usernames And Passwords
I'm writing a web app that needs a login page. I'm doing the dev on a windows box although the final version will go on a Linux box. I can't find any versions of mod_auth_Mysql precompiled for windows and have no idea about compiling c.source on windows (or anything to do it with). Is there a good reason I shouldn't store hashed password in MySQL and call them from Python scripts instead of using the apache auth module directly?
View Replies !
Hide Mysql Usernames And Passwords
I'm trying to have people access a secure mysql database. If they get to a certain webpage, they have clearance to access the database, and we have one password and one username (that the users do not know). Does anyone know how to have it so the people cannot see the cgi script to access the database?
View Replies !
Passwords, Permissions, And Blank Users
I have Apache 2 server, PHP5, and the latest MySQL installed on my system. I'm currently reading PHP and MySQL for Dummies (I told you I was a newbie) and trying to work through a few of the examples.One thing I noticed when I looked at the "users" table in the "mysql" database is a blank user with all privileges on localhost. I deleted that entry, set a password for my "root" account, and created another account with a non-blank password. The problem I am having is that I am trying to connect to the database as "root" with a blank password, and it's still working. I then tried a blank user, and it worked. I tried a random assortment of letters and numbers, and it worked.
View Replies !
Security For Shared Server.xml Passwords
I have an ISP that has the server.xml in a shared environment. The server.xml file is where my password is available for database access under connection pooling. I really would like to use connection pooling. Does anyone know how I can protect my password from being viewed by others using the same server.xml file? I cannot get the administrator to change the protection of the file because others in the shared environment need to be able to view it.
View Replies !
Can't Add New Users & Passwords To Grant Table
I am running MySQL 4.1.7 on my Windows XP system. I can create databases, ect. on the command line, but when I try to run a PHP script I receive the 'Access denied' error message. I have tried using the Grant command to add a new user but nothing comes up when I show SHOW GRANT except the root user. How do I add the new users for running the PHP script?
View Replies !
PASSWORD() Function :: Not Matching Passwords
I'm writing a login.php script for my web site and am encountering some problems matching the password of the user logging in. Here's some of my code where I believe the problem to be: $query = "SELECT user_id, first_name FROM users WHERE username='$u' AND password=PASSWORD('$p')"; echo($query); $result = mysql_query ($query); $row = mysql_fetch_array ($result, MYSQL_NUM); if ($row) { // Start the session, register the values & redirect. session_start(); $_SESSION['first_name'] = $row[1]; $_SESSION['user_id'] = $row[0]; header ("Location: [url]http://"[/url]; . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/loggedin.php"); exit(); } else { $message = '<p>The username and password entered do not match those on file.</p>'; } mysql_close(); } else { $message .= '<p>Please try again.</p>'; } } I keep getting my error message "The username and password entered do not match those on file" listed above in the conditional. The server doing my hosting is running MySQL 4.1.14 - standard. The test login script that is getting passed prints out as follows: SELECT user_id, first_name FROM users WHERE username='test' AND password=PASSWORD('test1') Am I doing something wrong with the PASSWORD() function?
View Replies !
User Passwords Lost On Reboot
Server 2003 | IIS6 | MySQL 4.1.14-nt-max | phpMyAdmin 2.6.4-pl3 Apart from root, I have only 6 databases and whenever I reboot the server, I have to reset the passwords on 4 db's (using phpMyAdmin). Checking the mysql db, user table I note that the 4 that are causing problems have an asterix *preceding the encrypted password. The passwords that do not change were set with the help of a friend using SQL statements.
View Replies !
Password Encryption To Store Passwords
What I'd like to do is have an html login page using php to process the request, and then compare the input strings to a username & password stored in a SQL table. My question is though, what is the best way to store the password in the mySQL table. Is it better to store it as an encrypted value, and can I do this?
View Replies !
People Store Passwords In Database
i used to store the password in database using md5() function but there is no way to retrieve the password back. Now i want to know that - is it standard and secure way to store password? is there any other technique to store password so i can retrive it back?
View Replies !
Authentication To MySQL
i have one problem with l'authentication to the MySQL; I am using the language Java and i access to the data-base in following db = DriverManager.getConnection("jdbc:mysql://localhost:3306/" + nomeDB + "?user=" + nomeUtente + "&password=" + pwdUtente); but I do not want insert pwdUtente and nomeUtente in the source-code, What can i do?
View Replies !
Encryption / Authentication
I need to find out if it's possible to do two things with mysql. The = first is external authentication, preferably with kerberos5, but PAM = will work as well. Second, encrypting the data stream. Specifically = with jdbc connections.
View Replies !
MySQL And PHP Authentication
I'm getting the following error while trying to connect via php to an existant mysql (local) server: Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client. I have latest PHP and MySQL installed. This seems like the password problem (new password system now) the older was 16 bits right? Thing is... My PHP should support this, its 5.x and I have latest mysql as well.
View Replies !
Support Authentication
i have installed php4.4 with iis and mysql5 and phpmyadmin is 2.5 version and mysql administration tool too i get the error client does not support authentication protocol, i will be very pleased if someone suggest a good workin version for all mysql php and phpmyadmin
View Replies !
User Authentication
I do know how to create user logins and such.what I need to know is once a user logs in and submits his data (CSV) to Mysql DB,how do i ensure that the data goes into his account.In other words,whats the best way to manage user accounts and control the data that goes into that.
View Replies !
Windows Authentication
I would like to a Windows Authentication with MySQL (similar to the Windows Authentication available for SQL Server). Does anyone knows how it can be done?
View Replies !
How To Log Authentication Failures ONLY?
I am trying to figure out how I can log _only_ authentication failures with mysql. It appears to me, that I can only either log all queries and mysqld errors, or only mysqld errors? I have tried in my.cnf: [mysqld] log = /var/log/mysql/access.log log_error = /var/log/mysql/error.log log_warnings = 1 But this logs every single query made, which I don't want, as it fills up the log files too much. If I do only [mysqld] log_error = /var/log/mysql/error.log log_warnings = 1 or... [mysqld] log_error = /var/log/mysql/error.log log_warnings = 2 ... then I get only mysqld errors, but nothing related to authentication failures. Is there a way to configure this?
View Replies !
Slow Authentication
MySQL V 5.0.18 on SUSE 10.1 I'm not a complete *nix noob, but I sure as hell ain't a *nix or MySQL pro. This is a new installation. Everything screaming fast. Unless it deals w/authentication. Try to get in w/SQLyog from W2K locally ... intitial connection takes ~20 seconds. Then everything screaming fast. Web Server (W03) attempts to connect via MyODBC ... same result ... initial connection takes ~20 seconds. Subsequent queries screaming fast. VNC into the box at any time ... everything fast. (would seem to eliminate network/connection issues)
View Replies !
Packed Passwords In Command Line Programs
I think this is a trivial newbie question but can only be answered by a guru. In command line programs, why should passwords be packed with the parameter name? For example for mysqlimport one would write the command like that: mysqlimport -u user -ppass Why not just mysqlimport -u user -p pass ?
View Replies !
Back Up And Restore Field Containing Encrypted Passwords
I am using a web application that stores information about users in a table (username, password, address etc.). The password is encrypted (MD5). I backed up this database using mysqldump -u -p database >db.sql and restored the table on some other machine. My first machine is RHEL4 running Mysql 4.1 and new machine is RHEL5 running Mysql5. After restoration, I am unable to login to the users through web application. Is there an option to backup and restore tables containing fields with encrypted password information.
View Replies !
How To Maintain Schemas With Different Passwords In Mysql As Oracle
I am new to mysql,i know oracle, recently we are migrated database from oracle to mysql,we are have one database with different schema s in oracle and different passwords.Is there any chance to maintain different schema s with different passwords in mysql (In mysql we are getting only one user contain all schema s) With Single port number....
View Replies !
MySQLAdmin :: Store Passwords Option Enabled
I've created a scheduled backup job with MySQL Administrator (1.0.20, MySQL 4.1.11, Windows Server 2003) and it fails with: Cannot connect to MySQL Server. Access denied for user 'root'@'localhost' (using password: NO) (Error Number 1045) The 'Store Passwords' option is enabled. Why isn't it using the password?
View Replies !
Binary Column Types / Hashed Passwords
I'm building an asp.net application using MySQL as the database. I've created a table to store usernames and passwords. During user creation and authentication - i'm presenting the db with a hashed password value. When a hashed password is stored in a db - how should it appear in the table? In the MySQL table I'm using to store username and passwords, it appears as system.byte[]. The data type is defined as varchar(16), binary. The field is not behaving as it should during authentication - as long at I enter a valid username, the system authenticates me despite a correct or incorrect password value. Can anyone help me to define the appropriate column type? My application works fine w/ MS SQL but fails w/ MySql. In MS SQL the field is described as:[PWD] [binary] (16) NULL
View Replies !
Switched To 4.1, Now Passwords Work Differently - How To Adjust?
I switched from MySQL 3.23 to 4.1. I used Pear DB but now, it doesn't seem to work so I switched to Pear MDB2. I used MySQL Control Center to add a new system user to the MySQL user table but the password was like an nd5 hash instead of the old 16 character password in version 3.23. When I try to connect it indicates it can not connect.
View Replies !
Support Authentication Protocol
I have a service provider where my mySQL database is being held. Everything is uploaded and ready to go. When i try to access the database via my ASP code i get the following error message: Client does not support authentication protocol requested by server; consider upgrading MySQL client I've heard to use the Password/ Old password functions, but who has to do that, me or the service provider? When i try to use the Command prompt from the MySQL administrator it won't let me access the command prompt.
View Replies !
Authentication / Permission Basics
I have a number of users like 'fred', who can access MySQL 4.1 from %.fredworld.com. He has full access to his own database, fred. No other permissions defined. What's the best way for me to allow every user to connect from localhost. After reading up on http://dev.mysql.com/doc/refman/4.1/en/connection-access.html I thought the answer might be to do: insert into user (host, user) values ('localhost', ''); flush privileges; but this doesn't do what I want. How should I go about this?
View Replies !
Client Does Not Support Authentication
The problem is that when i browse to http://reception/admin/index.php? and enter username and password I recieve the following message 1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client But i can log into mysql using the command prompt
View Replies !
MySql / Php Authentication Problems
whenever I try to access mySql, I alway's get the following error: #1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client A little extra info (if needed): -I just installed php v 4.3.1, apache 2, and mySQL 4.1 -It's all on my laptop (if it makes a diffrence) -It's on a windows platform
View Replies !
Repost:Binary Column Types / Hashed Passwords
I'm building an asp.net application using MySQL as the database. I've created a table to store usernames and passwords. During user creation and authentication - i'm presenting the db with a hashed password value. When a hashed password is stored in a db - how should it appear in the table? In the MySQL table I'm using to store username and passwords, it appears as system.byte[]. The data type is defined as varchar(16), binary. The field is not behaving as it should during authentication - as long at I enter a valid username, the system authenticates me despite a correct or incorrect password value. Can anyone help me to define the appropriate column type? My application works fine w/ MS SQL but fails w/ MySql. In MS SQL the field is described as:[PWD] [binary] (16) NULL
View Replies !
|