database - Command for granting Access on MySQL -


what command granting access mysql database new users want connect?

consider statement:

create user 'java'@'localhost' identified 'password'; grant on javabase.* 'java'@'localhost' identified 'password'; 

here localhost able connect database. can write '*' instead of 'localhost'?

grant on javabase.* 'java'@'%' identified 'password'; work hosts


Comments

Popular posts from this blog

python - Setting ctypes.Structure default values -

Ansible - ERROR! the field 'hosts' is required but was not set -

java - HTTP Status 500 - No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode -