Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP 5.3
|
BOOK: Beginning PHP 5.3
This is the forum to discuss the Wrox book Beginning PHP 5.3 by Matt Doyle; ISBN: 978-0-470-41396-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 5.3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2011, 01:37 AM
Authorized User
 
Join Date: Jun 2011
Posts: 51
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via MSN to nawar youssef
Default hey guys need help with Mysql!!

I did every step in the book to setup the mysql and the root and everything is good so I can lunch the database engine and the terminal window shows the

"Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.5.9 Source distribution"
but after that most of the commend I write does not work some of them like help and quit it works but the other like the SELECT ---- FROM ---
doesn't works it shows like this :

" ERROR 1142 (42000): SELECT command denied to user ''@'localhost' for table 'user' "

so please anybody could help me? I wanna start work with DB!!!
thanks
 
Old October 8th, 2011, 04:37 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

Did you login to the db server using a username/password? Because it looks like no user is specified as the error usually says something like: command denied to user "root@localhost" etc.

So make sure you are specifying a username when logging in to the server.

I would also go and download this: http://dev.mysql.com/downloads/workbench/ and once you get it installed you'll then be able to add users and grant permissions to users more easily.
 
Old October 8th, 2011, 05:00 PM
Authorized User
 
Join Date: Jun 2011
Posts: 51
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via MSN to nawar youssef
Default I had nothing tell me that

I had nothing tell me that I have to log in, becasue its the first time and I want just to make a username and password as the book tell, but any of the command work. so i don't know
and I am gonna try the download, but should I do anything else or just downloading it? I mean should I uninstall anything eles?
thaks
 
Old October 8th, 2011, 08:08 PM
Authorized User
 
Join Date: Jun 2011
Posts: 51
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via MSN to nawar youssef
Default hey, again

I installed the Mysql from the link but I did not know how to work and who to start,
are the commands here the same of the book or different?
if not who to make an admin username and pasword with the mysql that
come with MAMP?
thanks .
 
Old October 9th, 2011, 05:00 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

Never used MAMP but if it's the same as XAMP then there should be a user of 'root' setup when it's installed. So try logging in to the db server with that username, the password should be whatever you setup when installing MAMP.
 
Old October 9th, 2011, 11:09 PM
Authorized User
 
Join Date: Jun 2011
Posts: 51
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via MSN to nawar youssef
Default yea, thanks but one more thing...

can you please tell me how to log in to the sql in Terminal on mac, OR
how can I log in to the sql that I download from the link you gave me, I download it but did not know who to work on it ?
 
Old October 10th, 2011, 02:50 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

Use: mysql -u root

If you connect successfully then you should use:
Code:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('secret_password');
to change the password for the root user.

You should then quit the MySQL command prompt using:
Code:
\q
and then re-login with:
Code:
mysql -u root -p
You'll then be asked to supply the password you setup earlier. Entering the correct password will then log you in again.
 
Old October 10th, 2011, 12:35 PM
Authorized User
 
Join Date: Jun 2011
Posts: 51
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via MSN to nawar youssef
Default I tried that but you right I need a password ...

I tried that but you right I need a password ... but I can not make a user name and password while I am not able to access this is the code I write and the answer :

nawaryoussef1s-MacBook-Pro:~ nawaryoussef$ /Applications/MAMP/Library/bin/mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)


so any other solution can give me to solve it please,
thanks. and i am sorry for that.
 
Old October 11th, 2011, 03:32 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

Read this: http://dev.mysql.com/doc/refman/5.0/...passwords.html

You may also need this: http://www.phpmyadmin.net/home_page/index.php which will give you a web based admin facility for MySQL.
The Following User Says Thank You to UseLess For This Useful Post:
nawar youssef (October 12th, 2011)
 
Old October 11th, 2011, 04:13 PM
Authorized User
 
Join Date: Jun 2011
Posts: 51
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via MSN to nawar youssef
Default I think this

I think this is what I am looking for,
the tutorials seem like it has the information I need, and I download mysql workbench and I am gonna start read the documentations with mySql and see.
thank you again.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hey, anybody still come here, can not find real help!!! nawar youssef BOOK: Beginning PHP 5.3 6 July 12th, 2012 06:39 AM
Hey Hal ! augustine SQL Server 2000 1 August 2nd, 2004 08:57 AM
what do u Guys think ! augustine General .NET 4 July 12th, 2004 02:46 PM
Hey, JavaScript guru lcsgeek Classic ASP Databases 2 September 11th, 2003 08:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.