技术标签: 代码报错记录 # OpenStack
访问被拒绝
同步数据库时
[root@controller ~]# su -s /bin/sh -c "nova-manage api_db sync" nova
error: (pymysql.err.OperationalError) (1045, u"Access denied for user 'nova'@'controller' (using password: YES)")
首先觉得是数据库配置时设置授权用户密码有错所以重新输了一遍代码
[root@controller ~]# mysql -uroot -p000000
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.1.12-MariaDB MariaDB Server
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database nova_api;
ERROR 1007 (HY000): Can't create database 'nova_api'; database exists
MariaDB [(none)]> create database nova;
ERROR 1007 (HY000): Can't create database 'nova'; database exists
MariaDB [(none)]> grant all privileges on nova_api.* to 'nova'@'localhost' identified by '这里写你的密码';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on nova_api.* to 'nova'@'%' identified by '这里写你的密码';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on nova.* to 'nova'@'localhost' identified by '这里写你的密码';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on nova.* to 'nova'@'%' identified by '这里写你的密码';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
再次同步数据库,报同样的错误
下面进入/etc/nova/nova.conf下查看配置文件
vi /etc/nova/nova.conf
主要查看
[api_database]
connection = mysql+pymysql://nova:这里写你的密码@controller/nova_api
[database]
connection = mysql+pymysql://nova:这里写你的密码@controller/nova
发现自己【database]文件配置时nova:后面密码输错
再次同步数据库
[root@controller ~]# su -s /bin/sh -c "nova-manage api_db sync" nova
[root@controller ~]# su -s /bin/sh -c "nova-manage db sync" nova
问题解决
本篇文章将随着我个人知识的更新而更新~前端学习路线前端基础三件套1.HTMLHTML语言是用来编写网页骨架的一种语言。HTML是文本标记语言,门槛比较低,但知识点杂。学习HTML的主要目标是:理解HTML的语法和编写规则,对网页是如何形成的有大致的了解掌握常见的标签,手敲感受掌握表单及表单验证学习HTML的目的是学会开发网页,而不是记住所有标签名、属性名等建议过一遍知识点(可以找线上教程),然后掌握重点即可。表单验证课程:BV16K4y1Z7GbHTML标签参考手册:w3s._使用000网站开发
linux环境, 运行sh spoon.sh打开图形化界面时经常出现闪退情况。报错信息如下:cfgbuilder - Warning: The configuration parameter [org] is not supported by the default configuration builder for scheme: sftpjava: cairo-misc.c:380: _cai..._kettle程序在linux上怎么停止运行
来自:机器之心这篇工作主要是由我和SENet的作者胡杰一起完成的,也非常感谢HKUST的两位导师 陈启峰和张潼老师的讨论和建议。本文是对我们CVPR 2021被接收的文章Involuti..._involution operater
函数是组织好的,可重复使用的,用来实现单一,或相关联功能的代码段。函数能提高应用的模块性,和代码的重复利用率。你已经知道Python提供了许多内建函数,比如print()。但你也可以自己创建函数,这被叫做用户自定义函数。 高阶函数,函数式编程,函数本身也可以赋值给变量,即:变量可以指向函数;亦可以把函数当成参数传递。示例一:求两个数的平方根的和 将函数作...
一、Mat类型:矩阵类型,Matrix。 在openCV中,Mat是一个多维的密集数据数组。可以用来处理向量和矩阵、图像、直方图等等常见的多维数据。 Mat有3个重要的方法: 1、Mat mat = imread(const String* filename); 读取图像 2、imshow(con
链表中倒数第K个结点 牛客网 程序员面试金典 C++ Python题目描述 输入一个链表,输出该链表中倒数第k个结点。C++/*struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { }};*/clas...
Python字典的索引Python的dictionary字典变量是以键值对的形式储存和索引的。假设有一个字典变量叫dict:dict = {'Monday':1, 'Tuesday':'2', 'Wednesday':'3', 'Thursday':'4', 'Friday':'5'}索引键dict.keys()输出dict_keys(['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'])索引值dict.values()_python 字典索引
Portlet 开发指南 目录 Portlet 开发指南...............................................................................................................................1第一章节入门介绍............................
摘要:近来又用到了Linux系统,所以就又新装了一个虚拟机和CentOS 6.4来用,搞开发的程序猿们可能都知道,在现在的很多企业中,生产环境大多都是Linux服务器,并且用的比较多的大都是CentOS,Red hat系列的Linux系统环境,下面我就以我当前安装的CentOS 6.4来说明一下在该环境下安装Jdk 1.7.0_75版本的操作过程吧,如下所述:一:首先下载对应CentOS版本的...
本文分别介绍定积分的近似计算的三种方法:矩形法、梯形法、抛物线法。_c语言抛物线趋势算法
一、创建Ajaxlet req = new XMLHttpRequest();二、发送请求 req.open('POST','asses/test/city.json',false);//发送请求 req.send();//将请求发送到服务器上open(method,ul,async)有三个参数;1、请求类型:GET和POST。2、请求文件的地址。3、true(异步)或 fal..._ajax select()
# MAC keep alivingif platform.system( ) != 'Windows': import appnope appnope.nope( )_mac让软件一直在后台运行