233 reputation
1414
bio website
location Norway
age 22
visits member for 3 years, 8 months
seen Jul 3 at 17:45

Code enthusiast!


Feb
6
comment How do I configure a location block to always return a single file in nginx?
@ceejayoz: Trying your suggestion with location =/ I get 404 NOT FOUND, with location / I get 500 INTERNAL SERVER ERROR.
Feb
6
asked How do I configure a location block to always return a single file in nginx?
Feb
3
accepted How do I get multiple location directives on one server to work in nginx?
Feb
3
asked How do I get multiple location directives on one server to work in nginx?
Jan
31
awarded  Notable Question
Jan
7
awarded  Popular Question
Dec
26
awarded  Notable Question
Nov
14
awarded  Popular Question
Jul
27
awarded  Popular Question
Jul
17
comment Connecting to MySQL from PHP is extremely slow
Although it didn't work to use skip_name_resolve it did work to add 127.0.0.1 localhost to my hosts file, so the rev-dns query was indeed the sinner. Thanks
Jul
17
accepted Connecting to MySQL from PHP is extremely slow
Jul
17
revised Connecting to MySQL from PHP is extremely slow
edited title
Jul
17
comment Connecting to MySQL from PHP is extremely slow
OK, brainfart with the timing results - I've updated my answer again. It's the connect function that takes really long to finish - the query is fast
Jul
17
revised Connecting to MySQL from PHP is extremely slow
deleted 213 characters in body
Jul
17
comment Connecting to MySQL from PHP is extremely slow
Did the solution to my problem suddenly become so laughably obvious that people vote it down and don't bother to reply, or are we just stumped?
Jul
17
comment Connecting to MySQL from PHP is extremely slow
@thinice: pastebin.com/4dXe7ZDa
Jul
17
comment Connecting to MySQL from PHP is extremely slow
Thanks for that comment, I updated my question. Both the connection and query is super fast
Jul
17
revised Connecting to MySQL from PHP is extremely slow
added 775 characters in body
Jul
17
comment Connecting to MySQL from PHP is extremely slow
Running the same query from MySQL Workbench is just as fast as the CLI client, and so is HeidiSQL
Jul
17
comment Connecting to MySQL from PHP is extremely slow
Oddly enough both PHPMyAdmin and the MySQL CLI client now gives me "Host '127.0.0.1' is not allowed to connect to this MySQL server". For some reason the PHP script still works, but just as slow as before