apache mysql - “packets out of order” on 3306

后端 未结 5 676
长情又很酷
长情又很酷 2020-12-05 17:37

I just did a fresh install of Apache server 2.2. Everything works. When I go to localhost I get: \"It Works!\"

I just installed mySQL5.5 and when I go to localhost:

相关标签:
5条回答
  • 2020-12-05 18:09

    Try just to write http://localhost/ without the port and it will work , Or go to your phpmyadmin and click on My websites and it will take you immediately to your localhost

    0 讨论(0)
  • 2020-12-05 18:13

    I'm having exactly the same problem, so far I have : 1)Manually changed the Collation (it seemed to be defaulting to cp850)

    2)altered the ini/cnf file (located under services.msc -> MySQL)

    3)Changed the max_packet_size to 2G

    3)rebooted the server.

    As a start to this please run this script from MySQL 'SHOW VARIABLES WHERE Variable_name LIKE 'character_set_%' OR Variable_name LIKE 'collation%';'

    It should bring up a table of your collations, they should all read utf8 Possible causes

    0 讨论(0)
  • 2020-12-05 18:17

    I'm a jsp beginner. I have a same problem with you. I guess it's kind of port problem.

    For me, I had set the port for Apache server connector as 9090. Later, when I installed mysql, the port for mysql was 3306 as its default port.

    In my jsp file, i loaded jdbc driver like 'jdbc:mysql://localhost:9090/dbname' and then i call 'http://localhost:9090/my.jsp' on my web browser. That's when I got the same problem with you.

    I fixed the port part in my jsp file like 'jdbc:mysql://localhost:3306/dbname' and I could get it all right.

    I think you need to check the port for your Apache server. You can check out \conf\server.xml file in your Apache directory. The part starts with "Connector port=8080...." in server.xml file. If so, you need to put 'http://localhost:8080... on your browser.

    0 讨论(0)
  • 2020-12-05 18:18

    The mysql service is not a web interface - you cannot connect using a browser. You will need to install a mysql client of some kind.

    0 讨论(0)
  • 2020-12-05 18:22

    If you try to start phpmyadmin then do it like this:

    localhost/phpmyadmin
    
    0 讨论(0)
提交回复
热议问题