hjf Posted May 14, 2008 Report Share Posted May 14, 2008 I'm following a tutorial to learn PHP. The tutorial is assuming individual installation of PHP, MySQL, and Apache.--not The Uniform Server. The tutorial has an exercise which requires access to MySQL. I'm supposed to type a statement at the mysql> prompt. I can't figure out how to get to the mysql prompt. I don't see any MySQL files in the Uniform Server folder. I used the UniServer admin panel to check if MySQL is running. It is. That's all I can figure out. Any help/direction will be appreciated. Thanks. Quote Link to comment Share on other sites More sharing options...
Ric Posted May 14, 2008 Report Share Posted May 14, 2008 I think this is the page you are looking for: http://center.uniformserver.com/mysql/mysql_console.html All the bestRic Quote Link to comment Share on other sites More sharing options...
hjf Posted May 14, 2008 Author Report Share Posted May 14, 2008 Thanks, Ric. I'll check it out. I think this is the page you are looking for: http://center.uniformserver.com/mysql/mysql_console.html All the bestRic Quote Link to comment Share on other sites More sharing options...
hjf Posted May 15, 2008 Author Report Share Posted May 15, 2008 I think this is the page you are looking for: http://center.uniformserver.com/mysql/mysql_console.html Ric, I got as far as "Type in CD usr\local\mysql\bin this selects the folder where you run MySQL console". That's the last instruction I understood and accomplished. I don't know why I need to create users and set permissions but I tried to follow the instructions but I can't figure out what I'm supposed to type for the username and password. The instructions are to type mysql -uroot -proot (Where -u stands for username immediately followed by the username...) I tried:mysql -uroot -proot (since I thought "root" was the default and I haven't made any changes)mysql root rootmysql uroot proot Each time I get a message: 'mysql' is not recognized as an internal or external command, operable program or batch file. I'm stuck. Quote Link to comment Share on other sites More sharing options...
Convergence Posted May 15, 2008 Report Share Posted May 15, 2008 After you CD into MySQL's folder, do you see the prompt: W:\usr\local\mysql\bin\ >? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 15, 2008 Report Share Posted May 15, 2008 What are you even trying to type in the console? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Ric Posted May 15, 2008 Report Share Posted May 15, 2008 To make it a little clearer I have taken a copy (from the screen) of the transactions.Highlighted, what you need to type in to the command window (cmd) to obtain the mysql prompt: start > run > cmd opens a command window C:\Documents and Settings\mike>w:W:\>cd usr\local\mysql\binW:\usr\local\mysql\bin>mysql -uroot –proot Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 1Server version: 5.0.41-community-nt MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>(Type in your MySQL commands )exitBye W:\usr\local\mysql\bin> Hope that helpsRic Quote Link to comment Share on other sites More sharing options...
hjf Posted May 15, 2008 Author Report Share Posted May 15, 2008 Thank you, Ric. It worked this time. To make it a little clearer I have taken a copy (from the screen) of the transactions.Highlighted, what you need to type in to the command window (cmd) to obtain the mysql prompt:<snip>Hope that helpsRic After you CD into MySQL's folder, do you see the prompt: W:\usr\local\mysql\bin\ >? thanks for replying. Ric's response helped me. What are you even trying to type in the console?Thanks for replying. I was trying to get the mysql prompt. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.