首页 \ 问答 \ C不承认var - 我必须忽略一些简单的东西。(C doesn't recognize var - I must be overlooking something simple. [closed])

C不承认var - 我必须忽略一些简单的东西。(C doesn't recognize var - I must be overlooking something simple. [closed])

从错误中我认为print()中的代码没有看到for()中的计数器.nb代码用于Propeller微控制器。 for()过去没有问题。 非常感谢

#include "simpletools.h"  // for print on my microcontroller platform
void main(void) {
    for(int x = 1; x <= 20; x++); {
        // *** error next line> error: 'x' undeclared (first use in this function)
        print("x = %d\n", x);
        high(14);
        pause(500);
        low(14);
        pause(500);
    }
}

From error I think code in print() is not seeing the counter in for().n.b. code is for Propeller microcontroller. for() worked without problems in past. Much thanks

#include "simpletools.h"  // for print on my microcontroller platform
void main(void) {
    for(int x = 1; x <= 20; x++); {
        // *** error next line> error: 'x' undeclared (first use in this function)
        print("x = %d\n", x);
        high(14);
        pause(500);
        low(14);
        pause(500);
    }
}

原文:https://stackoverflow.com/questions/21170684
更新时间:2022-08-29 15:08

最满意答案

你的innodb引擎可以有自己的单独文件夹,用于存储数据文件。 根据MySQL手册,InnoDB默认在MySQL数据目录中创建表空间文件,请参阅: http//dev.mysql.com/doc/refman/5.0/en/innodb-configuration.html

通常,您会将表拆分到不同的驱动器上以提高性能,因此您可能会将InnoDB表配置为放置在另一个驱动器或文件夹上。 如果你有,请检查以前的MySQL配置文件并检查以下行:innodb_data_home_dir = / ibdata

这将指示文件的位置。 我没有试过这个,但如果是这种情况,你应该能够将当前的配置指向旧的innodb位置。 如果这不起作用,我认为恢复将是你最好的选择。

祝你好运!


Your innodb engines can have their own seperate folder where they store their data files. According the MySQL manual InnoDB creates tablespace files in the MySQL data directory by default see: http://dev.mysql.com/doc/refman/5.0/en/innodb-configuration.html.

Normally you would split you tables onto different drives to increase performance thus you might have a scenario where the InnoDB tables where configured to be placed on a another drive or folder. If you have it please check the previous MySQL configuration file and check for the following line: innodb_data_home_dir = /ibdata

This will indicate where the files are located. I have not tried this but you should be able to point the current config to the old innodb location if this is the case. If that does not work I think restoring will be you best bet.

Good luck!

相关问答

更多
  • 如果您使用MySql安装程序,您的文件很可能位于Windows程序文件夹中。 如果要继续,首先卸载MySql 5.5,然后继续更新Winginx中的MySql。 如果要在Winginx中升级mysql版本,可以从http://dev.mysql.com/downloads/mysql/5.5.html下载ZIP。 我假设您在C:\ Winginx中安装了Winginx 将mysql文件夹从C:\ Winginx \ mysql移动到C:\ Winginx \ mysql.bak 在C:\ Winginx下创 ...
  • 你的innodb引擎可以有自己的单独文件夹,用于存储数据文件。 根据MySQL手册,InnoDB默认在MySQL数据目录中创建表空间文件,请参阅: http : //dev.mysql.com/doc/refman/5.0/en/innodb-configuration.html 。 通常,您会将表拆分到不同的驱动器上以提高性能,因此您可能会将InnoDB表配置为放置在另一个驱动器或文件夹上。 如果你有,请检查以前的MySQL配置文件并检查以下行:innodb_data_home_dir = / ibdat ...
  • 固定 打开终端并打开MAMP的mysql数据库文件夹: sudo chown -R `whoami`:admin /Applications/MAMP/db/mysql 说明 我刚遇到同样的错误,提示在这里: [错误] InnoDB:./ ib_logfile0无法在读写模式下打开。 这意味着不允许运行mysqld的用户进行读写。 但_mysql是此文件的所有者: -rw-r ----- 1 _mysql admin 50331648 10 avr 22:35 ib_logfile0 我跑了ps -axj ...
  • 看起来这个问题与JDBC驱动程序有关。 从5.1.6升级到更新版本5.1.31解决了这个问题。 Quartz JDBCJobStore与MySQL有关 It looks like the problem is related to the JDBC driver. Upgrading from 5.1.6 to a more recent version 5.1.31 solved the issue. Quartz JDBCJobStore problems with MySQL
  • 经过几周的尝试,我终于找到了这个: Yoshinori Matsunobu博客 - MyISAM和磁盘IO调度程序 Yoshinori演示了将调度程序队列更改为100000(从默认值128)可以显着提高大多数调度程序上MyISAM的吞吐量。 对我的系统进行此更改后,在此过程运行时,MyISAM表上不再出现数据库挂起的任何戏剧性实例。 数据量预计略有放缓,但系统保持稳定。 任何遇到MyISAM性能问题的人都应该阅读Yoshinori的博客文章并考虑这个问题。 After a few weeks of tryi ...
  • 您应始终在执行升级之前进行备份。 特别是对于主要版本的升级。 也就是说,升级后我没有遇到任何麻烦。 它肯定比MySQL 5.1到5.5升级更容易。 这部分是因为MariaDB 5.5只是与MySQL 5.5合并的MariaDB 5.3。 5.3有一个很大的底层优化器更改。 这就是为什么花了很长时间才能变得稳定。 相比之下,MariaDB 5.3的第一个稳定版本和MariaDB 5.5的第一个稳定版本之间的相对较短的时间段:所有非常努力的工作已经在5.3中完成了。 免责声明:我在MariaDB项目上工作,所以 ...
  • 对于用户创建问题,请尝试使用phpMyAdmin添加它。 PMA优于SQL查询! 对于您的登录问题,请删除用户列表中的用户* (使用PMA)。 它会解决你的问题! 我遇到了同样的问题,我这样做是为了解决它。 For the user creation problem, try using phpMyAdmin to add it. PMA is better than SQL query! For your login problem, delete the user * in the user list ...
  • 我们最近在CentOS上进行了精确升级。 我们的任何数据库都没有遇到任何麻烦,都使用InnoDB引擎。 我附上了我们的内部升级方法,这可能会节省您一些时间,并向您展示我们采用的路径。 本指南假设您正在运行AMD64 versjon og CentOS 6。 为MariaDB创建一个yum repo文件,并将其命名为/etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0/cento ...
  • 看起来您的问题超出了SQL查询。 您的第一张图片显示正在输出的PHP代码。 您确定您的配置没有更改,例如关闭short_open_tag吗? It looks like your problem extends beyond SQL queries. Your first image shows PHP code being outputted. Are you sure your configuration hasn't changed, for example turning short_open_ta ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)