Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active June 10, 2021 06:56

Revisions

  1. jansanchez revised this gist Dec 10, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # MySQL case sensitive in linux
    # MySQL lower case table names sensitive in linux

    ### Type in your terminal

  2. jansanchez revised this gist Dec 10, 2013. 1 changed file with 19 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,25 @@ sudo vim /etc/mysql/my.cnf
    lower_case_table_names=1
    ```

    ### It will look like

    ```
    [mysqld]
    #
    # * Basic Settings
    #
    lower_case_table_names=1
    user = mysql
    pid-file = /var/run/mysqld/mysqld.pid
    socket = /var/run/mysqld/mysqld.sock
    port = 3306
    basedir = /usr
    datadir = /var/lib/mysql
    tmpdir = /tmp
    lc-messages-dir = /usr/share/mysql
    skip-external-locking
    ```

    ### Restart mysql

    ```
  3. jansanchez revised this gist Dec 10, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,21 @@
    # MySQL case sensitive in linux

    ### type in your terminal
    ### Type in your terminal

    ```
    sudo vim /etc/mysql/my.cnf
    ```

    ### edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]
    ### Edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]

    ```
    lower_case_table_names=1
    ```

    ### restart mysql
    ### Restart mysql

    ```
    sudo service mysql restart
    ```

    ### enjoy!
    ### Enjoy!
  4. jansanchez renamed this gist Dec 10, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. jansanchez created this gist Dec 10, 2013.
    21 changes: 21 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    # MySQL case sensitive in linux

    ### type in your terminal

    ```
    sudo vim /etc/mysql/my.cnf
    ```

    ### edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]

    ```
    lower_case_table_names=1
    ```

    ### restart mysql

    ```
    sudo service mysql restart
    ```

    ### enjoy!