wamp time to first bytes slow after restore database
Posted by: lioncool (---.hsd1.ut.comcast.net)
Date: August 16, 2016 05:46AM

after i restored back up database and website everything work fine except i do webpagetest Time to First Byte: 6292 ms this is slow usually i get under 2 sec when i click page to page on pc it look like slow anyone know how to fix this problems here my site

eliteshoutouts.com

Options: ReplyQuote
Re: wamp time to first bytes slow after restore database
Posted by: Otomatic (Moderator)
Date: August 16, 2016 09:19AM

Hi,

Use 127.0.0.1 as mysql host instead of localhost.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: wamp time to first bytes slow after restore database
Posted by: lioncool (---.hsd1.ut.comcast.net)
Date: August 16, 2016 11:35AM

how i do that where i can edit

Options: ReplyQuote
Re: wamp time to first bytes slow after restore database
Posted by: RiggsFolly (Moderator)
Date: August 16, 2016 12:18PM

You do this in your connection when you connect your script to the database

i.e.

$link = mysqli_connect("127.0.0.1", "my_user", "my_password", 'my_db');

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.