将备份的 SQL Anywhere 10 .db 文件导入 MySQL 5.1

发布于 2024-10-04 16:41:44 字数 74 浏览 3 评论 0原文

我有一周前数据库的备份。我需要将其导入 MySQL,而无需访问原始数据库服务器。尽管我的老板知道我远不是一个数据库管理员;我该怎么做?

I have a backup of a database from a week ago. I need to import this into MySQL without access to the original database server. Despite my boss's knowledge that I am nowhere near a database administrator; how do I do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

唱一曲作罢 2024-10-11 16:41:44

没有人会提供答案,因为(a)这是非法的,(b)它违反网站规则。

如果您拥有对数据库服务器的合法访问权限:

  • 这意味着第一个选择是获取 ASA 许可证,而不是使用 MySQL。只需一个命令即可将 .DB 文件加载到其中

  • 合法访问意味着对建筑物的访问以及许可证的访问,该许可证将允许您通过使用的任何客户端访问服务器和数据。

评论回复

  1. 烦恼是职业生活的一部分。如果数据库组很可能已经决定不允许您拥有某些东西;这是公司的安全策略,您或您的老板必须在软件之外处理这些问题。

  2. 为什么 ASA 团队不能直接授予您访问 ASA 数据库的权限?然后你就可以连接并做任何你想做的事;查看数据库;更好地理解它;随时获取当前数据,无需复制。制作数据库的副本是一件愚蠢的事情(公司有两个需要支持、维护、管理和同步的数据副本)。不应轻视此决定

如果您最终坚持使用 MySQL:

  1. 您需要它们以可以导入的格式导出数据库。我不明白为什么你必须告诉他们要使用哪个命令,他们应该很好地了解他们的命令。也有不同的方法可以得到相同的结果。如果他们需要帮助,请给他们此链接。您还应该阅读并理解本章:

    链接Sybase ASA 用户指南/第 21 章导入和导出数据

    • 他们提供:
      • 数据模型,因此您可以在 MySQL 端创建自己的数据库,并了解要加载的表顺序
      • 他们的每个表格都以字符格式(通常是 CSV)导出,以便您可以将每个表格加载到您的表格中
      • 他们使用了什么命令,以便您知道会发生什么以及如何处理他们发送给您的导出文件。
        .
  2. 第一次加载数据库后,您可以调整向 ASA 团队发出的后续请求(例如,可能仅请求特定表,或某些其他格式等)。

No one will provide an answer because (a) it is illegal, and (b) it is against the website rules.

If you have legal access to the database server:

  • which means the first option is to get a licence for ASA, rather than using MySQL. It takes one single command to load the .DB file into it

  • legal access means both access to the building and to a licence which will allow you to access the server and the data via whatever client you use.

Responses to Comments

  1. Annoyances are part of life in the profession. If the db group may well have decided that you are not permitted to have something; that is company security policy that you or your boss have to deal with outside the software.

  2. Why can't the ASA Team just give you access to the ASA database ? Then you can connect and do whatever you want; have a look at database; understand it better; get current data at any time, without making a copy. Making a copy of a database is a stupid thing to do (the corporation then has two copies of data that it needs to be supported, maintained, administered and synchronised). The dicsion should not be taken lightly

If you stick with MySQL at your end:

  1. Then you need them to export the database in a format that you can import. I do not see why you have to tell them which command[s] to use, they should know their commands well. Also there are different ways of getting the same result. If they need help, give them this link. You should also read and understand this chapter:

    Link to Sybase ASA Users Guide/Ch 21 Importing and Exporting Data

    • Get them to provide you with:
      • the Data Model, so you can create your own db on the MySQL side, and understand the table sequence to load
      • each of their tables exported in a character format (usually CSV), so that you can load each into your tables
      • what command they used, so that you know what to expect and how to treat the export files they send you.
        .
  2. After you have loaded your db the first time, you can modulate your subsequent requests to the ASA Team (eg. probably request specific tables only, or some other format, etc).
凹づ凸ル 2024-10-11 16:41:44

您不需要数据库的 MySQL 副本。 SQL Anywhere 提供了一个开发人员版本,您可以免费使用。它仅在开发过程中合法 - 而不是生产 - 但听起来这会满足您的需求。

您可以在此处找到该文件的下载: http://www.sybase.com/detail?id= 1016644

You don't need a copy of MySQL for the database. SQL Anywhere provides a developer version which you can use free of charge. It's only legal in development - not production - but it sounds like this would suit your needs.

You can find a download of that here: http://www.sybase.com/detail?id=1016644

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文