Page MenuHomePhabricator

I lost my .my.cnf.
Closed, InvalidPublic

Description

I lost my .my.cnf. Please create one for me.

Event Timeline

Ryuch assigned this task to yuvipanda.
Ryuch raised the priority of this task from to Needs Triage.
Ryuch updated the task description. (Show Details)
Ryuch added a project: Toolforge.
Ryuch subscribed.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript

I am looking into Content Translation. So I am trying to install my MW instance.

yuvipanda subscribed.

I mean, did you create an account on tool labs and create a tool? If so, which one? Only tools get replica.my.cnf (and not .my.cnf)...

Yes. I did. My one is tools.ryu.

krenair@tools-bastion-01:~$ ls -al ~ryuch/.my.cnf
-rw------- 1 ryuch wikidev 50 Jul 28  2014 /home/ryuch/.my.cnf
krenair@tools-bastion-01:~$ groups ryuch
ryuch : wikidev project-bastion project-tools tools.ryu
krenair@tools-bastion-01:~$ ls -al ~tools.ryu/.my.cnf
-rw-r----- 1 tools.ryu tools.ryu 50 Jul 28  2014 /data/project/ryu/.my.cnf

Dear Krenair,

Those two are identical. It does not work for tools.ryu.

The files are identical, and the credentials in them do not work?

it's strange it works when I type just "mysql". Even I can create a database. But when I try to install my own MW, it fails because of the authentication.

Krenair claimed this task.

It is closed? But my problem remains. What shall I do?

It sounds like the credentials work perfectly, but you haven't set MW up right. And I'm not sure you should be trying to use it in tools anyway...

If you are trying to setup a mediawiki instance, I'll say tool labs is the wrong place for that a variety of reasons unless you are a seasoned Mediawiki admin. I'd suggest getting the language engineering team to add you to their labs project and using https://wikitech.wikimedia.org/wiki/Help:MediaWiki-Vagrant_in_Labs

I have,

tools.ryu@tools-bastion-02:~$ mysql --defaults-file="${HOME}"/.my.cnf
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

It works?

That should work if you set the database server hostname using -h <hostname>

And that won't be the last problem you run into. I repeat my suggestion of getting added to the language engineering team's labs project and using Mediawiki-Vagrant in Labs.

Thanks, Kreanair and Yuvipanda. I take your advice, Yuvi. I agree it is closed.