#1130 – Host ‘localhost’ is not allowed to connect to this MySQL server

Use the IP instead: DROP USER ‘root’@’127.0.0.1’; GRANT ALL PRIVILEGES ON . TO ‘root’@’%’; For more possibilities, see this link. To create the root user, seeing as MySQL is local & all, execute the following from the command line (Start > Run > “cmd” without quotes): mysqladmin -u root password ‘mynewpassword’ Documentation, and Lost root … Read more

where does MySQL store database files?

In any case you can know it: mysql> select @@datadir; +—————————————————————-+ | @@datadir | +—————————————————————-+ | D:\Documents and Settings\b394382\My Documents\MySQL_5_1\data\ | +—————————————————————-+ 1 row in set (0.00 sec) Thanks Barry Galbraith from the MySql Forum http://forums.mysql.com/read.php?10,379153,379167#msg-379167

SQL: deleting tables with prefix

You cannot do it with just a single MySQL command, however you can use MySQL to construct the statement for you: In the MySQL shell or through PHPMyAdmin, use the following query SELECT CONCAT( ‘DROP TABLE ‘, GROUP_CONCAT(table_name) , ‘;’ ) AS statement FROM information_schema.tables WHERE table_name LIKE ‘myprefix_%’; This will generate a DROP statement … Read more