| | |
Check if user exists
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
I need to check if a databse user exists and if not, create that user.
However, I do not know the statement to check if a user already exits.
How to check if a user already exists in MySQL?
However, I do not know the statement to check if a user already exits.
How to check if a user already exists in MySQL?
My blog on .NET- http://dotnet.tekyt.info
•
•
Join Date: Jun 2008
Posts: 79
Reputation:
Solved Threads: 8
MySQL Syntax (Toggle Plain Text)
SELECT user FROM mysql.user WHERE user=' ';
you should have access to mysql DB to execute the query
•
•
Join Date: Apr 2008
Posts: 296
Reputation:
Solved Threads: 42
Hi tuse
How are you?
Well, if you had access to grant table mysql.user you would have also been able to
SELECT User, Password FROM mysql.user. You got it? Yes, you would be able to hack that
mysql database. So it's a good idea that not everybody is allowed to "see" grant table.
Happy hacking !
krs,
tesu
How are you?
Well, if you had access to grant table mysql.user you would have also been able to
SELECT User, Password FROM mysql.user. You got it? Yes, you would be able to hack that
mysql database. So it's a good idea that not everybody is allowed to "see" grant table.
Happy hacking !
krs,
tesu
Last edited by tesuji; Jun 27th, 2008 at 7:08 pm.
Information is moving—you know, nightly news is one way, of course, but it's also moving through the blogosphere and through the Internets. I promise you I will listen to what has been said here, even though I wasn't here. Ann and I will carry out this equivocal message to the world. I'm the master of low expectations.
Hi tesu!
I have (somehow) managed to see the mysql database!
I have (somehow) managed to see the mysql database!
My blog on .NET- http://dotnet.tekyt.info
![]() |
Similar Threads
- Validating a User Imput with SQL Database (Login) (C#)
- Is there any problem wid ths code? (PHP)
- Storing if a user has viewed a post (Database Design)
- Determine if session exists (PHP)
- Can Someone please check my project & comment/tips (C)
- php mysql help (PHP)
- MYSQL/PHP variable check (MySQL)
- Variable Validation & MYSQL (PHP)
Other Threads in the MySQL Forum
- Previous Thread: Database driver
- Next Thread: Query returns more than 1 value
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





