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;
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 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
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 debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
How to set a user to edit and access a specific database table only? is it possible? i am using vb.net and mysql as my database
If you are talking about mysql user permissions, then you should use:
GRANT SELECT, INSERT ON mydb.mytbl TO 'someuser'#'somehost';
Edit 1 : Adding Resource Links
You should consult the MySQL GRANT statement, and Access Privilege System documentation for more information on how this all works.
Make a user Table, perhaps called UserAccounts.
When login then select username and password from UserAccounts.
Make a condition, for username = admin and pass = admin then can do all query.
for username = guest and pass = guest then can do only query1.
and so on.
Databases and its tables permission, can be done via application based on query.
just specified your query and which user should run it
give some code, so we can see your progress
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)