Mysql 8 user length issue in centos 8 [closed] - mysql

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

Related

Bulk insert data in a table through Ruby on Rails from oracle database to MySQL database [closed]

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 7 days ago.
Improve this question
I have in my environment tow system
1- oracle database 12
2 redmine with MySQL
My users insert data in the tow system same field
But the main system it's oracle
How I can transfer field (data) from oracle to MySQL ?? Every 1 hour
Using migration tools or by using Rubyonrails and how?
www.redmine.org
If I'm configuration the 5 Field same type between other and ID field to equil
If u can help me and thx for all
Find code or solution to migration or insert data

What is best practice for deleting respective data into another tables. Mysql delete query OR mysql Triggers [closed]

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 6 years ago.
Improve this question
Mysql Delete query VS Mysql Triggers (which is fast option?)
Triggers if you want your DBA to be in control of the code.
Query if you want your programmers to be in control of the code.
To clarify:
If it's a trigger, then the implication is that it's part of the database design for things to work that way. i.e. the structure of the database depends on it working that way.
If it's query code, then the implication is that the action is part of your business logic, and not critical to the core structure of the DB.
As mentioned before, they are different things. From MSDN: "A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server"; whereas a DELETE is a DML statement, that is, statement to manipulate database records. In this case, used for removing database records from a table or view.

I couldn't understand importance of stored procedures [closed]

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 7 years ago.
Improve this question
Today i learned how to create stored procedures in MySQL.
DELIMETER //
CREATE PROCEDURE new(IN first INT)
BEGIN
SELECT * FROM table WHERE first_id= first;
END //
Lets say i created this and called it from PHP; CALL new('4');
or i wrote my sql command directly into PHP
$mysqli->query("SELECT * FROM table WHERE first_id= $first");
I have 20 sql commands in my PHP and i am doing them copy past into phpmyadmin as stored procedures. they are not descreasing. Now what i gain from stored procedure? Just a few letter? or??? Thanks for help.
Stored procedures are a good way for building a clean abstraction layer between what is going on in the database and your server side logic. In addition a stored procedure allows that you specify exactly what kind of data you are expexting (data type and possibly length) which can help to improve security in your application (at least at this "access data from database"-point).

Where mysql stores the password of users [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
When we setup a MySQL database system, system automatically create a MySQL databse in which there are multiple tables like db,event,func,host,servers,slow_log,user_info etc.
In user_info table I can get the list of users and their details by executing query like select * from user_info; except password.
But in which table MySQL store the password of every users?
MySQL passwords for users are stored within MySQL itself; they are stored in the mysql.user table. The passwords are hashed by default using the PASSWORD() function.
Source
in the mysql db, user table
SELECT
User,
Password
FROM mysql.user;

MySQL cant find my table? [closed]

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)