Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

phpMyAdmin Status - Wrong Date

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
value
Posts: 8
Joined: Tue May 03, 2016 12:29 pm

phpMyAdmin Status - Wrong Date
  • Quote

Post by value » Sun May 08, 2016 9:16 am

Hello,

After the initial install of VestaCP, I changed the timezone of the system. As a result, some elements of my websites are showing with the correct new date and some are still using the old one. I checked the database with "select now();" and the result is the correct new date. However, during the check, I noticed the following output from mysql:

ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 2351
Current database: *** NONE ***

Should I worry about it?

Also, even though the returned result was the correct new timeszone, when I go to phpMyAdmin under the Status tab, the line where it shows when the mysql was started is the old/wrong timezone.

Please suggest where to look.

Thanks.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: phpMyAdmin Status - Wrong Date
  • Quote

Post by mehargags » Sun May 08, 2016 11:41 am

Changing timezone should not have any impact over running services... yes the CRON jobs may fire at the wrong times.
MySQL issue is something else, check your logs and identify what killed mysql service.

Also, telling about your OS and server configuration is also helpful in getting right guidance.
Top

value
Posts: 8
Joined: Tue May 03, 2016 12:29 pm

Re: phpMyAdmin Status - Wrong Date
  • Quote

Post by value » Sun May 08, 2016 12:08 pm

Actually the MYSQL server is not stopped. It is running just fine and the websites doesn't have issues. It is just that when I execute the command on MYSQL shell, it provides that output which is a bit worrying. Why would the server report to not being running while it is?

Server version: Apache/2.2.15 (Unix)
Server built: Nov 15 2012 15:52:50
nginx version: nginx/1.10.0
Server version: 5.5.49 MySQL Community Server (GPL) by Remi
PHP 5.4.45 (cli) (built: Apr 27 2016 10:36:34)

CentOS 6.7 64bit
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: phpMyAdmin Status - Wrong Date
  • Quote

Post by skurudo » Tue May 10, 2016 1:56 pm

* change your server time - make sync with ntp-server
* php.ini - add date.timezone

By default:

Code: Select all

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password