---
title: "mysql真是个奇葩"
author: "chenss"
date: "2016-01-04T00:14:08Z"
tags: []
categories: ["编程语言"]
slug: "mysql"
draft: false
lastmod: "2016-01-05T22:11:26Z"
id: 2268389
url: "https://chenss.iteye.com/blog/2268389"
---

长期以来开了个mysql, 今天才发现原来只能localhost去连！。　那开个db有个屁用！。　奇葩的mysql. 

grant all privileges on \*.* to 'root'@'%' identified by 'root'; ----access denied!!!. 

起mysqld\_safe --skip-grant-tables, 再来。。The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement!!!!!!！

 

set global read\_only=0解决问题。

本地恢复了可以连了，virtualbox里还是不能连。。。。vim /etc/mysql/my.cnf，bind-address=\*, 搞定。。。

 

没发现原来mysql这么奇葩的为了安全装个db server一直只能localhost连的，要remote连要折腾半天。。。奇葩。。。

 

 

eclipse中Dynamic Web Module 3.1 requires Java 1.7 or newerven Java EE Configuration Problem问题: java compiler level, project facets, jdk lib都不解决问题：最后还是往pom.xml里标注版本：

&lt;plugin&gt;

&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;

&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;

&lt;version&gt;3.1&lt;/version&gt;

&lt;configuration&gt;

&lt;source&gt;1.8&lt;/source&gt;

&lt;target&gt;1.8&lt;/target&gt;

&lt;/configuration&gt;

&lt;/plugin&gt;