User:KBach-WMF~labswiki/Sandbox/Mobile readability
Appearance
Buttons
Images




bast1003.wikimedia.orgin the eqiad data center in Virginia, United Statesbast2003.wikimedia.orgin the codfw data center in Texas, United Statesbast3007.wikimedia.orgin the esams data center in Amsterdam, The Netherlandsbast4005.wikimedia.orgin the ulsfo data center in San Francisco, United Statesbast5004.wikimedia.orgin the eqsin data center in Singaporebast6003.wikimedia.orgin the drmrs data center in Marseille, Francebast7002.wikimedia.orgin the magru data center in São Paulo, Brazil
Code snippets
<?php
$ts_pw = posix_getpwuid(posix_getuid());
$ts_mycnf = parse_ini_file($ts_pw['dir'] . "/replica.my.cnf");
$db = new PDO("mysql:host=enwiki.analytics.db.svc.wikimedia.cloud;dbname=enwiki_p", $ts_mycnf['user'], $ts_mycnf['password']);
unset($ts_mycnf, $ts_pw);
$q = $db->prepare('select * from page where page_id = :id');
$q->execute(array(':id' => 843020));
print_r($q->fetchAll());
?>
This will delete the user password, but will indicate it does not uses the mysql native password authentication, but unix socket.
MariaDB [(none)]> SELECT user,host,password,plugin FROM mysql.user WHERE user='root'; +------+--------------+-------------------------------------------+-------------+ | user | host | password | plugin | +------+--------------+-------------------------------------------+-------------+ | root | localhost | | unix_socket |
This will delete the user password, but will indicate it does not uses the mysql native password authentication, but unix socket.
MariaDB [(none)]> SELECT user,host,password,plugin FROM mysql.user WHERE user='root'; +------+--------------+-------------------------------------------+-------------+ | user | host | password | plugin | +------+--------------+-------------------------------------------+-------------+ | root | localhost | | unix_socket |