php & mysql.

smoochy boys on tour

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
ok i dont it through phpmyadmin, and pasted those lines in.

just so i know what i have just done lol....

create database php default character set utf8; <-- created the database?
grant all on php.* to 'php'@'localhost' identified by 'php' with grant option; <-- set up a user on localhost for the php database only? and that last php is the password?
grant all on php.* to 'php'@'localhost.localdomain' identified by 'php' with grant option;

if im wrong please explain wht set what lol. but its worked :D

ty kaori and farphit for your attempts ;)
 

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
ty kaori :) u are a legend :p

how would i write it out and set them certain permissions? like so they can only view and edit a table, but not create one.
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
instead of grant all

grant select,insert,update on php.* to 'php'@'localhost' identified by 'php';
flush privileges;