有没有人可以error 1045在MySQL安装过程中向我解释.重新安装后我收到此错误.我正在尝试在Windows 7上安装.在安装的最后阶段(即应用安全设置)我收到以下消息:
The security settings could not be applied. Error Number 1045.
Access denied for user 'root' @ 'loaclhost'(usinf password: NO).
Run Code Online (Sandbox Code Playgroud)
我怎么能绕过这个?
我试图随机生成奇数.我试过这个,但它也生成偶数:
int coun=random.nextInt();
for(int i=1; i<100; i++){
if(i%2==1){
coun=random.nextInt(i);
}
}
Run Code Online (Sandbox Code Playgroud)
如何随机生成奇数?