Skip to content
Permalink
Browse files

Some notes on MySQL

  • Loading branch information...
almata committed Jun 16, 2019
1 parent d990cf9 commit d50dd8fd135a9bce33577ded23c3f0daa5d47366
Showing with 34 additions and 1 deletion.
  1. +3 −0 CHANGELOG.md
  2. +25 −0 MySQL/some-notes-on-mysql.md
  3. +6 −1 README.md
@@ -124,3 +124,6 @@ _Some truncated content here..._
## 2019-06-16 (10:44)
* A Jekyll/some-notes-on-jekyll.md

## 2019-06-16 (10:53)
* A MySQL/some-notes-on-mysql.md

@@ -0,0 +1,25 @@
# Some notes on MySQL

1. A temporary password is generated for root@localhost (i.e. _oZWQlrx,s3Xp_).

2. Check **System Preferences > MySQL** to start and stop MySQL Server and set whether or not it has to automatically start whenever Mac starts up.

3. OS X uses launch daemons to automatically start, stop, and manage processes and applications such as MySQL. Current values for some parameters as WorkingDirectory, RunAtLoad and others can be checked at MySQL daemon plist file which can be found at `/Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist`.

4. All programs (**mysql**, **mysqld**, **mysqladmin**, **mysqldump**...) are located at `/usr/local/mysql/bin`.

5. **mysql** in `/usr/local` is actually a symbolic link to specific installed version (i.e. `mysql-5.7.19-macos10.12-x86_64`).

6. Some useful aliases:

```bash
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
```

7. To open a session:

```bash
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'oZWQlrx,s3Xp';
```
@@ -7,7 +7,7 @@ When you have been working with different technologies and programming languages



__61 notes so far. Last added:__ [Some notes on Jekyll](Jekyll/some-notes-on-jekyll.md)
__62 notes so far. Last added:__ [Some notes on MySQL](MySQL/some-notes-on-mysql.md)

## Categories

@@ -24,6 +24,7 @@ __61 notes so far. Last added:__ [Some notes on Jekyll](Jekyll/some-notes-on-jek
* [Jekyll](#jekyll)
* [Literature](#literature)
* [MongoDB](#mongodb)
* [MySQL](#mysql)
* [Objective-C](#objective-c)
* [Programming](#programming)
* [Python](#python)
@@ -101,6 +102,10 @@ __61 notes so far. Last added:__ [Some notes on Jekyll](Jekyll/some-notes-on-jek
* [Select documents: find(), pretty(), count(), distinct() ](MongoDB/select-documents-find-pretty-count-distinct.md)
* [Update documents: updateOne() & updateMany()](MongoDB/update-documents-updateone-updatemany.md)

## MySQL

* [Some notes on MySQL](MySQL/some-notes-on-mysql.md)

## Objective-C

* [Add properties to categories](Objective-C/add-properties-to-categories.md)

0 comments on commit d50dd8f

Please sign in to comment.
You can’t perform that action at this time.