WAMP/SQL help

Soldato
Joined
14 Jul 2005
Posts
17,616
Location
Bristol
I'm trying to quickly and easily set up a local webserver on my 2nd PC so that I can test out site creations without having to upload them to the web, and I have been pointed towards WAMP.

Now it does what I want, has PHP SQL etc. running, but I can't for the life of me remember how to create users for the SQL database other than the root user. On my website's control panel I can just tell it to create a new table and create new users that can write to the table etc. but PHPMyAdmin doesn't seem to want to let me do anything like that. I can create new tables, but the only users are 'root'.

Also on the PHPMyAdmin main page it tells me root has no password and to edit the config file...now I've only found one that I can see would be the right config file, and it isn't as adding a password does nothing.

InvG
 
you do it in MySQL itself. The query to create a user for a specific database would be
Code:
GRANT ALL ON dbname.* TO 'user'@'host' IDENTIFIED BY PASSWORD('mypassword');

Run it through the MySQL cli or PHPMyAdmin. Host can most probably be kept as localhost unless you intend to access the DB remotely.
 
I tried that line, it didn't like it. But then I've forgotten where to put it exactly. It's been ages since I used MySQL or PHPMyAdmin, so don't know where to enter stuff or how to use it.

EDIT: Also I don't really want to have to install multiple things, having WAMP contain it all makers life easier, rather than having SQL, Apache, PHP all installed separately over the machine.

InvG
 
Last edited:
Uh oh...I broke it.

Looks like I didn't click enough things to find the users area. :)

I've now changed the localhost password...which is great...apart from now I can't get on it because it requires a password and has no login...oops. I think I'll just reinstall it. :D

InvG
 
Back
Top Bottom