Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
This is an admittedly easy question, I just dont have the background in MySQL to know this and a google search has been fruitless. I have a MySQL table with a couple of mediumtext columns. When I run a SELECT query, with MySQL Workbench, it only shows me a truncated version of the contents. How can I see the entire contents of a mediumtext column within workbench? I'm sure its just a config setting I'm missing.
SQL Query Preference -> Max. Field Value Length to Display. Default 256 bytes;
Right click on a cell with MEDIUMTEXT in the result pane and choose Open value in editor;
Query menu -> Execute (All or selection) to text;
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I tried the create a mysql user , length of user name 23 . It failed . I am user mysql 8 on centos 8 .
Just I tested my create user script by different user name ( less than 16) . It work .
Can anyone advise How I can increase the default user name length.
As per the manual
MySQL user names are up to 32 characters long. Operating system user names may have a different maximum length
And also:
Warning
The MySQL user name length limit is hardcoded in MySQL servers and clients, and trying to circumvent it by modifying the definitions of the tables in the mysql database does not work.
You should never alter the structure of tables in the mysql database in any manner whatsoever except by means of the procedure that is described in Section 2.11, “Upgrading MySQL”. Attempting to redefine MySQL's system tables in any other fashion results in undefined and unsupported behavior. The server is free to ignore rows that become malformed as a result of such modifications.
Read more here
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I want to copy MySQL database while replacing some vulnerable data(e/g. email, phone, name, etc/) How can I efficiently achieve this?
The steps
dump your database
import your database
obfuscate values in your copy
remove your old dump
dump your second database
do whatever you need with the dump of the copy
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Is there a SQL query that returns the schema of the current database? Like with columns "table", "name", "type", etc.
The platforms in question are MySQL, PostgreSQL, SQLite, and T-SQL.
The real RDBMS should all support an INFORMATION_SCHEMA set of views and tables. I think SQLite has its own take on things, but then it's a SQL library rather than a full RDBMS.
If you stick to the ANSI standard stuff your queries should be portable enough, but obviously you won't get details of the various platform-specfic features.
For MySQL, try SHOW TABLES; and DESCRIBE table_name;
For more info, check out http://dev.mysql.com/doc/refman/5.0/en/getting-information.html
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I reformatted my C drive, reinstall mysql for windows then deleted my 2 log files + ibdata1. I set the data path in my config file and was able to connect to my database. I see all my databases however if i try to select any data i get an error
I remembered I needed to set files per table so i wrote
innodb_file_per_table
I restarted mysqld and I still get an error. This is what i get specifically. t is the name of my database (its a test database). I see all the databases i have with show databases. show tables; works as well. But I can't select anything or desc TABLE. My database are 60gb in total so i'm worried i broke it all.
mysql> select * from inc;
ERROR 1146 (42S02): Table 't.inc' doesn't exist
The problem was the fresh my.ini file no longer had the innodb_data_home_dir="c:/path/to". I looked at my ini file from a external HD for a different database. I must have a different version of the installer/mysql (even though its still 5.5)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I perform an SQL query on a database with MySQL and I get back only the first 1000 rows from 24000 expected. If i export the results to an XML form, I get the first 1000 again.
Is there a way to disable that limit and get back all the rows?
Otherwise, I will have to merge 24 XML files :/
Do these steps:
Go to Edit -> Preferences.
Click on the SQL Editor tab.
Under Query Editor, uncheck Limit Rows.
Edit
Workbench Version 6.12 (Mac OS(10.11.3))
Go to Edit -> Preferences.
Click on the SQL Editor tab.
Under SQL Execution, uncheck Limit Rows.
I would recommend simply clicking the "Toggle limitation of the records number" button located right above the results pane. Turning off the limit is not the best approach since the server will have to send all records with every query. Placing a limit on the rows returned is generally a good idea.