Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the spbsm domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/rjsrsxcg/public_html/wp-includes/functions.php on line 6121
Mysql de Kullanıcı İşlemleri – kodcafe.com

Mysql de Kullanıcı İşlemleri

 CREATE USER : Kullanıcı oluşturma

CREATE USER user_specification

[, user_specification] …

user_specification:

user

[IDENTIFIED BY [PASSWORD] ‘password

| IDENTIFIED WITH auth_plugin [AS ‘auth_string‘]

 

  • CREATE USER ‘ali’@’localhost’ IDENTIFIED BY ‘sifre’;
  • CREATE USER ‘superali’@’%’ IDENTIFIED BY ‘zorsifre’;
  • CREATE USER ‘kullanici’@’%.com’ IDENTIFIED BY ‘sifre’;
  • INSERT INTO user (host,user,password) VALUES(‘localhost’,‘kullanici’,PASSWORD(‘sifre’));

DROP USER : KULLANICIYI SİLMEK

DROP USER ‘ali’@‘localhost’;

 

RENAME USER : Kullanıcı ismi değiştirmek

RENAME USER ‘ali’@’localhost’ TO ‘veli’@’127.0.0.1′;

SET PASSWORD : Şifre değiştirme

SET PASSWORD FOR ‘can’@’%.edu.tr’ = PASSWORD(‘sifre‘);

Update mysql.user  set password= PASSWORD(‘sifre‘) where user=’can’ and host=’%edu.tr’;

 

 

GRANT  : YETKİ  VERMEK

GRANT YETKILER ON VERITABANI_ADI

TO KULLANICI IDENTIFIED BY Istenen_Sifre ;

grant all on * to ‘dilek’@’%’  identified by ‘bote’;   dilek kullanıcısı tum veri tabanlarında yetkilidir.

 

GRANT CREATE DATABASE ON deneme.* TO ‘dilek’@’192.168.1.37’ IDENTIFIED BY ‘sifre1’;

dilek kullanicisina deneme veritabani uzerinde sifre1 parolasi ile 192.168.1.37 ip_adresli makineden veritabanı oluşturma izni ile baglanabilmesi icin;