Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

erreur pour créer un user avec mariadb

5 réponses
Avatar
Bernard Schoenacker
bonjour,


j'essaye de créer un user avec mariadb en ligne de commande et voici le
résultat :


mysql -u phpmyadmin -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 868
Server version: 10.0.25-MariaDB-1 Debian buildd-unstable

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE USER 'louche'@'localhost' IDENTIFIED BY 'jean-michel';
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation


comment sortir de l'impasse ?

slt
bernard

5 réponses

Avatar
Bernard Schoenacker
Le Tue, 14 Jun 2016 16:25:52 +0200,
Bernard Schoenacker a écrit :
bonjour,
j'essaye de créer un user avec mariadb en ligne de commande et voici
le résultat :
mysql -u phpmyadmin -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 868
Server version: 10.0.25-MariaDB-1 Debian buildd-unstable
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or 'h' for help. Type 'c' to clear the current input
statement.
MariaDB [(none)]> CREATE USER 'louche'@'localhost' IDENTIFIED BY
'jean-michel'; ERROR 1227 (42000): Access denied; you need (at least
one of) the CREATE USER privilege(s) for this operation
comment sortir de l'impasse ?
slt
bernard

bonjour,
je donne la suite pour éclaircir un peut les nuages :
For server side help, type 'help contents'
MariaDB [(none)]> status
--------------
mysql Ver 15.1 Distrib 10.0.25-MariaDB, for debian-linux-gnu (i686)
using readline 5.2
Connection id: 879
Current database:
Current user:
SSL: Not in use
Current pager: most
Using outfile: ''
Using delimiter: ;
Server: MariaDB
Server version: 10.0.25-MariaDB-1 Debian buildd-unstable
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 3 days 16 hours 5 min 28 sec
Threads: 1 Questions: 4746 Slow queries: 0 Opens: 34 Flush tables:
1 Open tables: 97 Queries per second avg: 0.014 --------------
slt
bernard
Avatar
Bernard Schoenacker
Le Tue, 14 Jun 2016 17:05:26 +0200,
Bernard Schoenacker a écrit :
Le Tue, 14 Jun 2016 16:25:52 +0200,
Bernard Schoenacker a écrit :
bonjour,
j'essaye de créer un user avec mariadb en ligne de commande et voici
le résultat :
mysql -u phpmyadmin -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 868
Server version: 10.0.25-MariaDB-1 Debian buildd-unstable
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or 'h' for help. Type 'c' to clear the current input
statement.
MariaDB [(none)]> CREATE USER 'louche'@'localhost' IDENTIFIED BY
'jean-michel'; ERROR 1227 (42000): Access denied; you need (at least
one of) the CREATE USER privilege(s) for this operation
comment sortir de l'impasse ?
slt
bernard

bonjour,
je donne la suite pour éclaircir un peut les nuages :
For server side help, type 'help contents'
MariaDB [(none)]> status
--------------
mysql Ver 15.1 Distrib 10.0.25-MariaDB, for debian-linux-gnu (i686)
using readline 5.2
Connection id: 879
Current database:
Current user:
SSL: Not in use
Current pager: most
Using outfile: ''
Using delimiter: ;
Server: MariaDB
Server version: 10.0.25-MariaDB-1 Debian
buildd-unstable Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 3 days 16 hours 5 min 28 sec
Threads: 1 Questions: 4746 Slow queries: 0 Opens: 34 Flush tables:
1 Open tables: 97 Queries per second avg: 0.014 --------------
slt
bernard

bonjour,
j'ai essayé laprocédure debian :
mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
password: NO)
slt
bernard
Avatar
Daniel Caillibaud
Le 14/06/16 à 16:25, Bernard Schoenacker a écrit :
BS> mysql -u phpmyadmin -p
BS> Access denied; you need (at least one of) the CREATE USER privilege(s)
BS> for this operation
Donc le user phpmyadmin n'a pas les droits create user et ne peut pas crà ©er d'utilisateur
BS> comment sortir de l'impasse ?
Utiliser un user qui dispose de ces droits…
Il a dû être choisi à l'install.
Tu peux regarder si mariadb n'a pas comme mysql un user debian-syst-maint ( ou équivalent) ayant
ces droits (pour mysql les infos sont dans /etc/mysql/debian.cnf)
--
Daniel
C'est très curieux : ce sont toujours les célibataires qui vous d onnent
des conseils pour élever des enfants.
Paul Claudel
Avatar
Michel Memeteau - EKIMIA
--001a1141d810d2bbee0535443a9c
Content-Type: text/plain; charset=UTF-8
2016-06-14 17:16 GMT+02:00 Bernard Schoenacker
:
mysql -u root

Plutot
mysql -u root -p
[image: photo]
*Michel Memeteau*
Directeur, Ekimia SAS
+33 (0)9 72 30 83 34 <+33+9+72+30+83+34> | | Notre WebBoutique
: http://shop.ekimia.fr <http://shop.ekimia.fr> | 49 chemin union 13720 La
bouilladisse
FRANCE
<http://facebook.com/ekimiashop>
<https://fr.linkedin.com/pub/michel-memeteau/50/793/126>
<http://twitter.com/ekimiainfo>
Contactez nous directement par Tchat sur http://bit.ly/ekichat
<http://bit.ly/ekichat>
--001a1141d810d2bbee0535443a9c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"> 2016-06-14 17:16 GMT+02:00 Bernard Schoenacker <span dir="ltr">&lt;<a hre f="mailto:" target="_blank">bernard.schoenac </a>&gt;</span>:<br><blockquote class="gmail_quote" style="m argin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;borde r-left-color:rgb(204,204,204);padding-left:1ex"><br>
mysql -u root</div><br>Plutot <br style="font-size:12.8 px"><span style="font-size:12.8px">mysql -u root -p </span><br><br c lear="all"><div><div class="gmail_signature" data-smartmail="gmail_si gnature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div> <div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir ="ltr"><div dir="ltr"><div dir="ltr"><table border="0" cellspacing ="0" cellpadding="0" width="470" style="font-size:small;width:470px "><tbody><tr valign="top"><td style="padding-left:10px;width:10px;paddi ng-right:10px"><img src="https://s3.amazonaws.com/ucwebapp.wisestamp.com/ c32ff44a-8da0-40eb-aa01-74ee2230766b/photomichel2Rogn.format_png.resize_120 x.png" width="65" height=" " alt="photo" style="border-radius: 4px; width: 65px; max-width: 120px;"> </td><td style="border-right-width :1px;border-right-style:solid;border-right-color:rgb(237,117,0)"></td><td s tyle="font-family:Arial;text-align:initial;font-stretch:normal;font-size: 14px;color:rgb(100,100,100);padding:0px 10px"><div><b>Michel Memeteau</b><b r>Directeur, Ekimia SAS</div><div style="color:rgb(141,141,141);font -size:13px;padding:5px 0px"><a href="tel:+33+9+72+30+83+34" target="_bl ank">+33 (0)9 72 30 83 34</a> <span style="color:rgb(237,117,0);disp lay:inline-block">|</span> <span style="display:inline-block"><a hre f="mailto:" style="color:rgb(141,141,141);text-decoration:n one" target="_blank"></a></span> <span style="color:rg b(237,117,0);display:inline-block">|</span> <span style="white-space :nowrap;display:inline-block"><a href="http://shop.ekimia.fr" style="co lor:rgb(141,141,141);text-decoration:none" target="_blank">Notre WebBouti que : http://shop.ekimia.fr</a></span> <span style="color:rgb(237,11 7,0);display:inline-block">|</span> <span style="display:inline-bloc k">49 chemin union 13720 La bouilladisse</span></div><div style="color:rg b(141,141,141);font-size:13px;padding:5px 0px"><span style="display:inlin e-block"> FRANCE</span></div><div style="margin-top:5px"><a href=" http://facebook.com/ekimiashop" style="color:rgb(17,85,204)" target="_b lank"><img width="16" src="https://s3.amazonaws.com/images.wisestamp.co m/icons_32/facebook.png" style="border-radius: 0px; border: 0px; width: 1 6px;" alt=""></a> <a href="https://fr.linkedin.com/pub/michel-meme teau/50/793/126" style="color:rgb(17,85,204)" target="_blank"><img widt h="16" src="https://s3.amazonaws.com/images.wisestamp.com/icons_32/link edin.png" alt="" style="border-radius: 0px; border: 0px; width: 16px;"> </a> <a href="http://twitter.com/ekimiainfo" style="color:rgb(17,8 5,204)" target="_blank"><img width="16" src="https://s3.amazonaws.com /images.wisestamp.com/icons_32/twitter.png" alt="" style="border-radius : 0px; border: 0px; width: 16px;"></a></div></td></tr></tbody></table><div style="font-size:small"><div><div dir="ltr"><div dir="ltr"><div dir ="ltr"><div><br></div><div><a href="http://bit.ly/ekichat" target="_b lank">Contactez nous directement par Tchat sur <font color="#1155cc" >http://bit.ly/ekichat</font></a></div><div><br></div><div><br></div></div> </div></div></div></div></div></div></div></div></div></div></div></div></d iv></div></div></div></div></div></div></div></div>
</div></div>
--001a1141d810d2bbee0535443a9c--
Avatar
Bernard Schoenacker
Le Tue, 14 Jun 2016 22:35:15 +0200,
Daniel Caillibaud a écrit :
Le 14/06/16 à 16:25, Bernard Schoenacker
a écrit :
BS> mysql -u phpmyadmin -p
BS> Access denied; you need (at least one of) the CREATE USER
BS> privilege(s) for this operation
Donc le user phpmyadmin n'a pas les droits create user et ne peut pas
créer d'utilisateur
BS> comment sortir de l'impasse ?
Utiliser un user qui dispose de ces droits…
Il a dû être choisi à l'install.
Tu peux regarder si mariadb n'a pas comme mysql un user
debian-syst-maint (ou équivalent) ayant ces droits (pour mysql les
infos sont dans /etc/mysql/debian.cnf)

bonjour,
après plusieures tentatives infructueuses j'ai tout remis à l'équerre
en réinstallant et là le debian.cnf est rempli ...
merci pour tout
slt
bernard