I wrote a simple bash script, where I need to get from database 'fake' data, just want to simulate traffic using the REPEAT command. I wrote this line:
mysql -u root -p'password' -h x.x.x.x -D mysql -se "SELECT REPEAT('A', 26214400);"
Password and login are both fine. I try to connect to remote sql server (its sucessfull) but can't really perform the REPEAT select. What can be wrong and how to solve this?
The output I get:
REPEAT('A', 26214400)
NULL
I did the same thing in PostgreSQL:
"$(psql -h x.x.x.x -d test -U postgres -c $'SELECT REPEAT(\'A\', 26214400);')"
which works great, but I also need the mysql solution.