# SingleStore DB how to set the table name case sensitivity to OFF

**URL:** <https://www.singlestore.com/forum/t/singlestore-db-how-to-set-the-table-name-case-sensitivity-to-off/4127>\
**Category:** SingleStore Tools\
**Created:** [March 7, 2022, 11:28pm UTC](https://www.singlestore.com/forum/t/singlestore-db-how-to-set-the-table-name-case-sensitivity-to-off/4127 "2022-03-07T23:28:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisgrasp](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@chrisgrasp](https://www.singlestore.com/forum/u/chrisgrasp)\
**Post date:** [March 7, 2022, 11:28pm UTC](https://www.singlestore.com/forum/t/singlestore-db-how-to-set-the-table-name-case-sensitivity-to-off/4127/1 "2022-03-07T23:28:50Z")

</div>

Within SingleStore DB 7.6.12 (non-managed), I can’t seem to figure out how to set table\_name\_case\_sensitivity=OFF properly.

I’ve tried running this in SS studio “SET GLOBAL table\_name\_case\_sensitivity=OFF” which gives me error “Variable ‘lower\_case\_table\_names’ is a read only and only settable at startup variable”.

I then tried using the command line:  
sdb-admin update-config --all --set-global --key “lower\_case\_table\_names” --value “OFF”

but get this error “stdout: Error 1238: Variable ‘lower\_case\_table\_names’ is a read only and only settable at startup variable”

Then I tried editing the config file directly:  
/var/lib/memsql/…/memsql.cnf and adding “lower\_case\_table\_names=OFF”

then I get this error:  
00000080 2022-03-07 15:12:38.664 ERROR: Thread -1: memsqld\_main: Global variable @@table\_name\_case\_sensitivity is not modifiable at startup  
00000153 2022-03-07 15:12:38.664 ERROR: ./memsqld: exiting

How do you properly set this variable and have it remain between restarts?

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [March 8, 2022, 1:05am UTC](https://www.singlestore.com/forum/t/singlestore-db-how-to-set-the-table-name-case-sensitivity-to-off/4127/2 "2022-03-08T01:05:09Z")

</div>

You can only change the setting of the variable table\_name\_case\_sensitivity when the cluster is empty. That is, the cluster must contain no user databases.

Did you see that notice at the bottom of this?

> **[Database Object Case-Sensitivity · SingleStore Documentation](https://docs.singlestore.com/db/v7.6/reference/sql-reference/database-object-case-sensitivity/)**
>
> SingleStore is a modern relational database for cloud and on-premises that delivers immediate insights for modern applications and analytical systems. Book a demo or trial today!

---

<div class="post-metadata">

**Author:** ![chrisgrasp](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@chrisgrasp](https://www.singlestore.com/forum/u/chrisgrasp)\
**Post date:** [March 8, 2022, 5:25pm UTC](https://www.singlestore.com/forum/t/singlestore-db-how-to-set-the-table-name-case-sensitivity-to-off/4127/3 "2022-03-08T17:25:46Z")

</div>

@hanson I did see that note and I only have the information\_schema db in the cluster.

 ![Screen Shot 2022-03-08 at 9.23.27 AM](https://forum-prod-assets20231213123829991800000001.s3.dualstack.us-east-1.amazonaws.com/original/1X/2588e6bf3302f7b78d3cf890e1b81760219b8cba.png)

I think I need to understand how to set a startup variable correctly.

---

<div class="post-metadata">

**Author:** ![chrisgrasp](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@chrisgrasp](https://www.singlestore.com/forum/u/chrisgrasp)\
**Post date:** [March 8, 2022, 8:47pm UTC](https://www.singlestore.com/forum/t/singlestore-db-how-to-set-the-table-name-case-sensitivity-to-off/4127/4 "2022-03-08T20:47:22Z")

</div>

@hanson I figured it out - I ended up having to SSH into the master aggregator and run this command:

```auto
sudo memsqlctl update-config --set-global --key "table_name_case_sensitivity" --value "OFF"

```
