|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Can you help me with this errors:
Warning: mysql_connect(): Unknown MySQL Server Host 'root@localhost' (11001) in G:\htdocs\Game Page\mysql\povezava.php on line 2 Warning: Missing argument 2 for send_sql() in G:\htdocs\Game Page\mysql\funkcije.php on line 2 Unknown database 'ime_podatkovne_zbirke' This are the programs: PHP Code:
PHP Code:
PHP Code:
|
|
#2
|
||||
|
||||
|
Your server name needs to be just "localhost" rather than "root@localhost."
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
Now the error is like this
Quote:
|
|
#4
|
||||
|
||||
|
Ok, so now you need to make sure that user is a valid user and has access to the database in question. Go to mysql.com and look up the syntax for "GRANT." You can also manually update the row for the given user in the mysql user database/table and flush privileges to force the changes.
|
|
#5
|
|||
|
|||
|
Could you be more specific becaus I'm new with this operation pleas.
Could you tell me what do I do with GRANT I foun it in mysql.com and is just a program what can I do with it or coud you tell me more specific how can I do this Quote:
|
|
#6
|
||||
|
||||
|
Actually, it's not a program but a command. You need to log into your mysql server as the root user (or a user with grant privileges) and issue the grant command at the prompt. I presume you had to have either command line access or some other way of creating your database initially. Whatever utility you used should also allow you to modify privileges, either manually using the grant command or updating the user table. I don't think I can boil it down beyond that.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > MySQL Problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|