Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Accessing MySQL

Featured Replies

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.

  • Author

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 root

mysql 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. :)

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\bin

W:\usr\local\mysql\bin>mysql -uroot –proot

 

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1

Server 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 )

exit

Bye

 

W:\usr\local\mysql\bin>

 

Hope that helps

Ric :)

  • Author

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 helps

Ric :)

 

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.