Showing entries 1 to 2
Displaying posts with tag: MySQL Techniques (reset)
Node.js & MySQL

These are my notes for creating a small Node.js application that queries a MySQL database. The post will show you how to:

  1. Configure your Node.js development directory.
  2. Build a small application to test a MySQL connection.
  3. Build a small application that connects to the MySQL database and queries data.

This blog post assumes you’ve performed a global install of Node.js on a Linux server. If you’re unfamiliar with how to perform a global Node.js installation, I cover how to do it in this earlier blog post.

Before you write the Node.js applicaiton, you need to setup a db developer directory. Then, create a node_modules symbolic link to the /usr/local/lib/node_modules directory in the db directory. You can use the following command …

[Read more]
Lowercase Table Names

A student posed the question about why table names are case sensitive. That’s because case sensitive table names are the default installation, as qualified in the MySQL documentation. You can verify that with the following query:

         WHEN @@lower_case_table_names = 1 THEN
           'Case insensitive tables'
           'Case sensitive tables.'
         END AS "Table Name Status";

The default value returned on Linux is:

| Table Name Status      |
| Case sensitive tables. |
1 row in set (0.00 sec)

The default value for the lower_case_table_names value on the Windows OS is 1

[Read more]
Showing entries 1 to 2