小编Che*_*dae的帖子

自动生成临时密码后无法访问MySQL

我已经删除并安装了OSX 10.11 El Capitan,我一直在通过本教程MySQL启动并运行新的OS X.第一步是下载MySQL For Mac OS X 10.9(x86,64位),DMG Archive(适用于10.11) ,他们在教程中推荐).当我完成安装MySQL时,我收到消息说:

2015-10-25T02:10:54.549219Z 1 [Note] A temporary password is generated for root@localhost: R>gFySuiu23U

If you lose this password, please consult the section How to Reset the Root Password in the MySQL reference manual.
Run Code Online (Sandbox Code Playgroud)

这很奇怪,我从未见过那种消息.之后,我通过Preference Pane启动了MySQL,然后/usr/local/mysql/bin/mysql -v在终端上使用命令进行另一步.我收到一条错误消息说:

ERROR 1045 (28000): Access denied for user 'cheetah'@'localhost' (using password: NO)

我也尝试通过Sequel Pro使用root作为用户名和空密码来访问数据库,我得到访问被拒绝消息说:

Unable to connect to host 127.0.0.1 because access was …
Run Code Online (Sandbox Code Playgroud)

mysql macos sequelpro osx-elcapitan

64
推荐指数
5
解决办法
9万
查看次数

文本输入仅允许在angularjs中输入整数

我想设置html输入[数字] <input type="number" />允许整数输入(不是浮点数).

基本上,html输入[number]允许'.' 输入浮动输入,我不希望这样.

有没有一种快速的方法可以在AngularJS中完成它?

javascript angularjs angularjs-validation

5
推荐指数
2
解决办法
2万
查看次数

安装ruby 1.9.3时遇到问题

rvm install 1.9.3在mac的终端上通过命令安装了ruby 1.9.3 .我安装后遇到这些错误(见下文).有没有人想解决这个问题?

运行错误'./configure --prefix =/Users/Keta/.rvm/rubies/ruby​​-1.9.3-p551 --with-opt-dir =/usr/local/opt/libyaml:/ usr/local/opt/readline:/ usr/local/opt/libksba:/ usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared',显示最后15行/用户/ Keta/.rvm/log/1421301212_ruby-1.9.3-p551/configure.log GEM_HOME =/Users/Keta/.rvm/gems/ruby​​-2.2.0 PATH =/usr/local/opt/pkg-config /斌:在/ usr /本地的/ opt/libtool的/ bin中:在/ usr /本地的/ opt /的automake /斌:在/ usr /本地的/ opt/autoconf的/ bin中:/Users/Keta/.rvm/gems/ruby-2.2.0 /bin:/Users/Keta/.rvm/gems/ruby-2.2.0@global/bin:/Users/Keta/.rvm/rubies/ruby-2.2.0/bin:/usr/local/bin:/usr /bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Users/Keta/.rvm/bin GEM_PATH =/Users/Keta/.rvm/gems /ruby-2.2.0:/Users/Keta/.rvm/gems/ruby-2.2.0@global command(7):./ configure --prefix =/Users/Keta/.rvm/rubies/ruby​​-1.9.3-p551 --with-opt-dir =/usr/local/opt/libyaml:/ usr/local/opt/readline:/ usr/local/opt/libksba:/ usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared configure:警告:无法识别的选项: - without-tcl , - without -tk检查构建系统类型... x86_64-apple-darwin14.0.0检查主机系统类型... x86_64-apple-darwin14.0.0检查目标系统类型... x86_64-apple-darwin14.0.0检查是否C编译器工作...是检查C编译器默认输出文件名... a.out检查可执行文件的后缀...检查我们是否正在交叉编译... configure:error:in/ usr/local/opt/libksba:/ usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared configure:警告:无法识别的选项: - withoutout- tcl, - without-tk检查构建系统类型... …

ruby rvm

3
推荐指数
1
解决办法
1225
查看次数