Still isnt an accurate answer .. the question being.. "WHY is it backslashed *IN* the database table rows itself"
The use of a "wildcard" being backslashed is for use in a *command* or *query* .. not used for storage...
as I showed in my original post.. a result set is returned *SHOWING* the backslash being stored in the database..
You see, I have been working very intensively with MySQL..
MySQL version 4.1.23 on debian , and many other machines, I use the "SHOW DATABASES" query to get a list of table names and parse it out...(and then select where db=value from users table, to get a list of grants) and until this situation with a CPanel enabled server, (also running MySQL 4.1.23 ) there has *never* been a backslashed underscore * IN* the database result set
You are answering a question I *did not* ask.. - not answering the original question
You are talking about the use of an underscore as a wildcard in a statement or query ..
I am talking about the underscore being backslashed *** IN the result set ***
I.E:
debian server, no control panel of any type, no cpanel , mysql 4.1.23
Code:
mysql> select db from db;
+-------------+
| db |
+-------------+
| test |
| ****_game1 |
| ****_game2 |
Notice, the database names are *NOT* backslashed
(obviously the prefix shown as ***** for security reasons)
Now.. going to the CPanel enabled server..
Code:
mysql> select db from db;
+----------------------+
| db |
+----------------------+
| test |
| test\_% |
| *****\_avsfinder |
| *****\_avsfinder |
What I am asking for is an explanation as to *why* CPanel does THAT - , because the issue *only* shows up on CPanel servers, no other servers that I work with... and MySQL manual shows no requirement whatsoever that said database names contained in db table should be escaped - no one else does, *including* mysql itself..
This is a totally non-standard implementation that I am rather convinced is a *bug* in CPanel, otherwise, I would lik eto know the purpose and/or reasoning behind the storage of a database name *containing* a backslash
it makes absolutely no sense to me ..