| | |
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
Views: 6445 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" 1 amazon api aws bizspark breathalyzer changingprices cmg communityjournalism contentmanagement contractors copyright count court crm data database design developer development distinct drupal dui ec2 eliminate email enterprise eudora facebook form foss gartner gnu government gpl groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier journalism keyword keywords kickfire laptop law legal license licensing linux managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple mysql mysqlcolumnupdating mysqlindex mysqlinternalqueries mysqlsearch news opendatabasealliance opengovernment opensource operand oracle pdf penelope php priceupdating query referencedesign remove reorderingcolumns resultset search select simpledb sourcecode spotify sql statement sugarcrm syntax techsupport thunderbird transparency update virtualization





