Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Any MySQL users (gurus) out there?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="muso" data-source="post: 8689" data-attributes="member: 40"><p>OK, I spent hours and hours trying to get mySQL working. After getting confused by conflicting instructions by many different websites, these are the instructions I use to start up mysql and log in:</p><p></p><p>shell> cd /usr/local/mysql</p><p>shell> sudo ./bin/mysqld_safe</p><p>(Enter your password, if necessary)</p><p>(Press Control-Z)</p><p>shell> bg</p><p>(Press Control-D or enter "exit" to exit the shell) </p><p></p><p>shell> alias mysql /usr/local/mysql/bin/mysql</p><p>shell> alias mysqladmin /usr/local/mysql/bin/mysqladmin</p><p>shell> mysql -h localhost -u root -p</p><p></p><p>As you can probably guess, that also creates aliases to mysql and mysqladmin so you can access them directly from your own user's directory.</p></blockquote><p></p>
[QUOTE="muso, post: 8689, member: 40"] OK, I spent hours and hours trying to get mySQL working. After getting confused by conflicting instructions by many different websites, these are the instructions I use to start up mysql and log in: shell> cd /usr/local/mysql shell> sudo ./bin/mysqld_safe (Enter your password, if necessary) (Press Control-Z) shell> bg (Press Control-D or enter "exit" to exit the shell) shell> alias mysql /usr/local/mysql/bin/mysql shell> alias mysqladmin /usr/local/mysql/bin/mysqladmin shell> mysql -h localhost -u root -p As you can probably guess, that also creates aliases to mysql and mysqladmin so you can access them directly from your own user's directory. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Any MySQL users (gurus) out there?
Top