[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Artanis] problem with Database operating
From: |
Nala Ginrut |
Subject: |
Re: [Artanis] problem with Database operating |
Date: |
Wed, 30 Jan 2019 00:30:48 +0800 |
User-agent: |
mu4e 1.0; emacs 25.1.1 |
Hi Xie!
The problem is that MySQL can't find /var/run/mysqld/mysqld.sock
Here's a solution:
https://mariadb.com/kb/en/library/missing-mysqldsock-file/
Wensheng Xie writes:
> Hi, Nala:
>
> Thanks for the reply.
>
> sudo service mysql restart
> ==> ok
>
> netstat -pan | grep mysql
> ==> listening xxxx - /var/run/mysqld/mysqld.sock
>
> However, I still have the same problem with artanis.
>
> What do you want to know about /var/run/mysqld/mysqld.sock?
> cat /var/run/mysqld/mysqld.sock
> ==>no such device or address
>
> Could you help?
> wxie
>
>
> On Tue, Jan 22, 2019 at 12:49 AM Nala Ginrut <address@hidden> wrote:
>
>>
>> hi Xie!
>> Could you confirm that your MySQL is start?
>> And please take a look at /var/run/mysqld/mysqld.sock
>>
>>
>> Wensheng Xie writes:
>>
>> > Hi, artanis:
>> >
>> > Using guile 2.2.4, artanis 0.3.1, I tried to run the mysql db code:
>> >
>> > (define conn (connect-db 'mysql #:db-username "test_user_1"
>> > #:db-name "my_artanis_db" #:db-passwd
>> "your_passwd"))
>> >
>> >
>> > /etc/artanis/artanis.conf was modified for the db.name and user name.
>> >
>> > on the mysql side, user address@hidden was grant all priviledges
>> for
>> > my_artanis_db.
>> >
>> > However, I still got the error:
>> > (500 "connect to DB error:" "file not found")
>> >
>> > It points to the above line of code.
>> >
>> > Is there any body making this working?
>> >
>> >
>> > best regards,
>> > wxie
>>
>>
>> --
>> GNU Powered it
>> GPL Protected it
>> GOD Blessed it
>> HFG - NalaGinrut
>> Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058
>>
--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058
signature.asc
Description: PGP signature